Skip to content

Instantly share code, notes, and snippets.

@dmpeters
Last active December 17, 2015 02:38
Show Gist options
  • Save dmpeters/5536695 to your computer and use it in GitHub Desktop.
Save dmpeters/5536695 to your computer and use it in GitHub Desktop.
Git Tips & Tricks

found this old sticky on my computer thought i'd move it to a gist

git ref web site

git help git help git help

git remote git remote -v

git push and delete remote branches

  • delete remote:
    • git push origin :newfeature
  • delete local:
    • git branch -d newfeature
    • git branch -D newfeature (force)

git checkout tracked remote branch

  • git remote update (make sure your up to date)
  • 2 options:
    • git checkout --track -b feature origin/feature
    • git checkout -t origin/feature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment