A toy version of git written in C.
- Repository initialization
- File staging
- Commits
- Branching and Merging
- Status
- Stash
- Checkout
- Reset
- Hashing (SHA-1)
git clone [email protected]:SavvyHex/babygit.git
cd babygit
make
This will create the bin/
folder inside which the babygit
executable will exist.
git clone [email protected]:SavvyHex/babygit.git
cd babygit
./install.sh
After installation, you can initialize a babygit
project using the following command.
babygit init
babygit add .
babygit commit "Initial Commit" "SavvyHex"
babygit branch testing
babygit checkout main
babygit status
babygit merge main
babygit stash