Skip to content

Instantly share code, notes, and snippets.

@robbdempsey
Last active July 8, 2016 14:29
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 robbdempsey/144a84e5226c5334a0e616083d9fac93 to your computer and use it in GitHub Desktop.
Save robbdempsey/144a84e5226c5334a0e616083d9fac93 to your computer and use it in GitHub Desktop.
that I keep forgetting.
### checkout a remote branch
git fetch origin
git checkout -b {local branch name} {origin/remote branch name}
### list branches and their last commit
git branch -v -a
### delete remote branch
git push origin --delete {branch-name}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment