Gitlet is a simplified version control software similar to git.
- java gitlet.Main init
- Creates a hidden gitlet directory to store commit history and file versions.
- java gitlet.Main add
- Updates staging area to add current file version.
- java gitlet.Main rm
- Updates staging area to remove current file.
- java gitlet.Main commit
- Uses staging area to save changes made to files (additions or removals).
- java gitlet.Main log
- Prints out all commits (with their metadata) starting at HEAD commit.
- java gitlet.Main global-log
- Prints out all commits (with their metadata).
- java gitlet.Main find
- Prints out all commits whom have the specified commit message.
- java gitlet.Main status
- Shows changes made to the staging area.
- java gitlet.Main checkout --
- Restores version of specified file from the parent commit.
- java gitlet.Main checkout --
- Restores version of specified file from the specified commit.
- java gitlet.Main checkout
- Restores all files from the commit at the end of the specified branch.
- java gitlet.Main reset
- Restores all files from the specified commit.
- java gitlet.Main branch
- Creates a new branch with specified name.
- java gitlet.Main rm-branch
- Removes a branch if the specified name exists.
- java gitlet.Main merge
- Merges files from the specified branch to the current branch and creates a new commit as a result. Merge conflicts are recorded within files.