Skip to content

Instantly share code, notes, and snippets.

@atomsfat
Last active September 29, 2015 11:48
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 atomsfat/1595679 to your computer and use it in GitHub Desktop.
Save atomsfat/1595679 to your computer and use it in GitHub Desktop.
Git tips and trips
#ignore changes:
git reset --hard
#delete remote branch
git push origin :newfeature
#delete local branch
git branch -d the_local_branch
#get remote branch
get remote branch
git remote show origin
git fetch
#from stash
git stash
git checkout -b new-branch
git stash apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment