Sets the name you want attached to your commit transactions
Sets the email you want attached to your commit transactions
Enables helpful colorization of command line output
Update a branch with the same name as current branch if no refspec is given
Which editor to use when commit and tag that lets you edit messages
Specify which command to invoke as the specified tool for git difftool
Creates a new local repository with the specified name
Downloads a project nd its entire version history
Lists all new or modified files to be committed
Short view of status
Shows file differences not yet staged
Snapshots the file in preparation for versioning
Add all modified files to be commited
Add only certain files
Snapshot only chunks of a file
Tell git not to track the file anymore
Show what has been added to the index via git add but not yet committed
Shows what has changed since the last commit.
Shows what has changed since the commit before the latest commit
Compare current branch to some other branch
Same as diff, but opens changes via difftool that you have configured
See only changes made in the current branch
See only the file names that has changed in current branch
See statistics on what files have changed and how
Unstages the file, but preserves its contents
Record changes to git. Default editor will open for a commit message
Records file snapshots permanently in version history
Change the history, editing the HEAD commit
Change the history, editing a specific commit other than HEAD
Change the history, reword/edit/squash/fix a group of latest commits
Lists all local branches in the current directory
Create a new branch
Switches to the specified branch and updates the working directory
Switches to a remote branch
Return file to it’s previous version, if it hasn’t been staged yet
Combines the specified branch’s history into the current branch
Merge branch without fast forwarding
See the full list of local and remote branches
Deletes the specified branch
Hard branch delete, will not complain
Rename a branch
Deletes the file from the working directory and stages the deletion
Removes the file from version control but preserves the file locally
Changes the file name and prepares it for commit
*.log build/ temp-* A text file named .gitignore suppresses accidental versioning of files and paths matching the specified patterns
Lists all ignored files in this project
Temporarily stores all modified tracked files
Restores the most recently stashed files
Lists all stashed changesets
Discards the most recently stashed changeset
Lists version history for the current branch
Lists version history for a file, including renames
Pretty commit view, you can customize it as much as you want
See what the author has worked on in the last week
See only changes in this branch
Shows content differences between two branches
Outputs metadata and content changes of the specified commit
Check sha1/unique name of HEAD commit
Unstage pending changes, the changes will still remain on file system
Undoes all commits after [commit], preserving changes locally
Discards all history and changes back to the specified commit
Downloads all history from the repository bookmark
Update history of remote branches, you can fetch and purge
Combines bookmark’s branch into current local branch
Push current branch to remote branch
Manually specify remote and branch to use every time
If a remote branch is not set up as an upstream, you can make it so
Downloads bookmark history and incorporates changes
Specify to pull a specific branch
See list of remote repos available
Detailed view of remote repos available
Add a new remote
$ git bisect start $ git bisect bad $ git bisect good v1.0 Bisecting: 6 revisions left to test after this [ecb6e1bc347ccecc5f9350d878ce677feb13d3b2]
$ make (or any other test) $ git bisect good Bisecting: 3 revisions left to test after this [b047b02ea83310a70fd603dc8cd7a6cd13d15c04]
$ make (or any other test) $ git bisect bad Bisecting: 1 revisions left to test after this [f71ce38690acf49c1f3c9bea38e09d82a5ce6014]
$ git bisect good b047b02ea83310a70fd603dc8cd7a6cd13d15c04 is first bad commit
$ git bisect reset