Implemented my own git, a version control language, with no external backbone code support. Gitlet is written with about 2200 lines of Java. It support plain files tracking, remote collaboration, basically most of the essential git commands and functionality. May, 2020
Disclaimer: Future CS61b peeps, this repo would NOT work for your autograder tests. It has been modified quite a lot after the class to achieve the result that I want, so do yourself a favor and do not clone it :)
init
add
commit
rm
log
global-log
find
status
checkout
branch
rm-branch
reset
merge
help
add-remote
rm-remote
push
fetch
pull
list-remote
- If you want to create your own git as well (super fun!), check out the java files in
/development
directory.
Makefile, test cases, and tester files are provided by CS61B course staff. All the other files are written by myself.
- Check out the
/production
directory, which includes a.launcher.sh
shell script and some other java class files. Setup with the following steps.source .launcher.sh
: Run the shell script every time the terminal is restarted, or add the path to your/.bashrc
file (or whatever shell rc file).gitlet init
gitlet <any command above>