Skip to the content.

Git Cheat Sheet | OverAPI.com

OverAPI.com is a site collecting all the cheatsheets,all!

Create Git

From existing directory

From other repository

Local Changes

Changed in working directory

Tracked file changes

Add changed files

Remove file

See files ready for commit

Commit changes

Change last commit

Revert changes to file

Revert changes (new commit)

Return to last committed state

History

Short Format

Show file commits

Show directory commits

Who changed file

Merge/Rebase

Merge branch into current

Rebase into branch

Abort rebase

Merge tool to solve conflicts

To view the merge conflicts

To discard conflicting patch

After resolving conflicts

Remote Update / Publish

List remotes

Show information

Add remote

Fetch changes

Fetch + merge

Publish local to remote

Delete remote branch

Publish tags

Branching/Tagging

Switch to branch

Create new branch

Create branch from existing

Delete branch

Tag current commit

Useful Commands

Finding Regressions

Check for Errors and Cleanup Repository

Search Working Directory for foo()