Skip to content

Instantly share code, notes, and snippets.

@TifPun
Last active March 30, 2017 21:23
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 TifPun/d6afdea223987ecc2100880d358f6b92 to your computer and use it in GitHub Desktop.
Save TifPun/d6afdea223987ecc2100880d358f6b92 to your computer and use it in GitHub Desktop.
Git cheatsheet

Checkout branch without detaching from head

git fetch
git --track branchName origin/branchName

Merge from branchA to branchB locally

git checkout branchB
git merge branchA

Delete branch locally

git branch -d branchName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment