Skip to content

Instantly share code, notes, and snippets.

@apfohl
Last active July 26, 2017 08:37
Show Gist options
  • Save apfohl/c087752d42ae5633bbfcda6a8ef2d1a9 to your computer and use it in GitHub Desktop.
Save apfohl/c087752d42ae5633bbfcda6a8ef2d1a9 to your computer and use it in GitHub Desktop.
Git Commands

Git Commands

General

Command Description
git init Create Git repository
git clone [repository] Clone Git repository
git add [file] Add file to staging area
git rm --cached [file] Remove file from staging area
git commit Create commit
git status Show status of repository
git log Show version history
git log --oneline Show version history in single lines
git diff Show changes to last commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment