Skip to content

Instantly share code, notes, and snippets.

@janstuemmel
Last active September 1, 2017 14:51
Show Gist options
  • Save janstuemmel/77fab4a8672455e7c644e166506f244c to your computer and use it in GitHub Desktop.
Save janstuemmel/77fab4a8672455e7c644e166506f244c to your computer and use it in GitHub Desktop.
Git Cheatsheet

Git Cheatsheet

Tag

  • git tag 12345 Creates a tag
  • git tag -d 12345 Deletes local tag
  • git push origin :refs/tags/12345 Deletes remote tag

Branch

  • git push origin --delete foo Deletes branch foo on remote

Commit

  • git commit --amend --no-edit Skips editing commit message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment