custom-git-cli
v1.0.0
Published
A custom Git-style version control CLI built from scratch with content-addressable storage, staging, commits, branching, and checkout.
Maintainers
Readme
mygit
Tiny Git-style version control for learning how commits, branches, and stored objects work.
Data lives in .mygit.
Commands:
initcreate the repoaddstage filescommitsave a snapshotstatusshow changeslogshow historybranchlist or create branchescheckoutswitch branchescat-fileprint an object
Example
node git.js init
echo "notes" > notes.txt
node git.js add notes.txt
node git.js commit -m "first commit"
node git.js log
node git.js branch work
node git.js checkout work