Last active
April 28, 2016 09:04
-
-
Save zakdances/6736873 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
// Create new branch ๐ track new branch ๐ switch to new branch | |
git checkout -b <branch> --track | |
git update-index --assume-unchanged <file> | |
git remote -v | |
git remote add upstream -f https://github.com/otheruser/repo.git | |
git remote set-url origin git://new.url.here | |
git tag -a v1.4 -m 'version 1.4' | |
git push origin v1.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment