This program attempts to mimic several of the features implemented by git. This project was completed using the python programming language and was inspired by the project in the course cs 61B taught at UC Berkeley. This version is done in python and while similar to the version project presented in the class, IT DOES BEHAVE SLIGHTLY DIFFERENTLY
python gitlet.py init
Initializes the git repository
python gitlet.py add [filename]
Add's the given file to the staging area.
python gitlet.py rm [filename]
If the file is in the staging area, remove it from the staging area. If the file isn't in the staging area, but is in the previous commit, the file is removed from the filesystem and all future commits
python gitlet.py commit [message]
Add's all of the staged changes and remove's file's flagged to be removed to the commit tree with the provided message
python gitlet.py log
Display's information about all of the commit's from the current commit on the current branch to the initial commit
python gitlet.py status
Print's out information about the current status of the gitlet repository
python gitlet.py branch [branchname]
Create's a new branch with the given name
python gitlet.py checkout [branchname]
Switches the current branch to the given branchname
python gitlet.py checkout -- [filename]
Checks out the given file to the most recent commit
python gitlet.py checkout [commitId] -- [filename]
Checks out the given file at the given commitId
python gitlet.py reset
Resets all files to the last commit
python gitlet.py merge [branchname]
Merges all files from the branchname into the current branch
python gitlet.py branch-rm [branchname]
Deletes the specified branchname