Created
January 25, 2012 01:19
-
-
Save hubertperron/1673976 to your computer and use it in GitHub Desktop.
git cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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