Skip to content

Instantly share code, notes, and snippets.

@hubertperron
Created January 25, 2012 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hubertperron/1673976 to your computer and use it in GitHub Desktop.
Save hubertperron/1673976 to your computer and use it in GitHub Desktop.
git cheatsheet
# untrack a file that has already been added/initialized to your repository but not delete it
git rm --cached file
# show information on origin
git remote show origin
# unstage a file
git reset HEAD file
# merge a branch from a remote repository
git remote add symfony-standard https://github.com/symfony/symfony-standard
git fetch foo
git branch -a
git checkout --track -b symfony-standard/2.1 symfony-standard/2.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment