Simple Git implementation in Go. A toy project helps me to learn Go and Git.
Flea follows the design principle of Git -- A content-addressable filesystem with a VCS user interface written on top of it.
Currently Flea supports only a small subset commands of Git, you can run flea -h
to inspect the list of commands it supports and the usage of these commands. The workflow is very similar to Git.
cd <repo>
flea init
flea add <file-path>
flea commit -m "first commit"
flea log
flea status
flea checkout <commit-hash>
flea checkout master
- Add branch
- More commands, e.g. revert/reset
- Show differences between files (like git diff)