Skip to content

Instantly share code, notes, and snippets.

@zakdances
Last active April 28, 2016 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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