sc: A lightweight distributed source control system for efficient code management and collaboration.
100
sc is a distributed source control system designed for developers to manage their code repositories efficiently. This lightweight tool offers intuitive commands for version control and collaboration.
Run the following command to see all available options:
sc --help
initInitialize a new repository. By default, the main branch is named main.
sc init
branch [branch]List all branches or create a new branch.
sc branch
sc branch <branch-name>
switchto <branch>Switch to a specific branch.
sc switchto <branch-name>
merge <branch>Merge a branch into the current branch.
sc merge <branch-name>
statusShow the working tree status.
sc status
add <file>Add a file to the staging area.
sc add <file-name>
commit [options]Record changes to the repository.
sc commit -m "Your commit message"
log [options]View the commit history.
sc log
clone [options] <repository>Clone a repository.
sc clone <repository-url>
help [command]Display help for a specific command.
sc help <command>
Initialize a repository:
sc init
Create and switch to a new branch:
sc branch feature-xyz
sc switchto feature-xyz
Add files to the staging area:
sc add index.js
Commit changes:
sc commit -m "Added index.js"
Merge the feature branch into the main branch:
sc switchto main
sc merge feature-xyz
View the commit history:
sc log
Washingtone Jalang'O Otiene
Content type
Image
Digest
sha256:8e7ea2994…
Size
333.6 MB
Last updated
almost 2 years ago
docker pull washingtone/source-control-tool:tagname