Skip to content

Instantly share code, notes, and snippets.

@zakdances
Last active April 28, 2016 09:04
Show Gist options
  • Save zakdances/6736873 to your computer and use it in GitHub Desktop.
Save zakdances/6736873 to your computer and use it in GitHub Desktop.
Git cheatsheet
// 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