Skip to content

Instantly share code, notes, and snippets.

@robpataki
Last active October 30, 2021 10:00
Show Gist options
  • Save robpataki/78f814f8e48a69c09a291c9e76d5a500 to your computer and use it in GitHub Desktop.
Save robpataki/78f814f8e48a69c09a291c9e76d5a500 to your computer and use it in GitHub Desktop.
Git notes

Git notes

Change author of the last commit

git commit --amend --author="Rob Pataki <email@email.email>"

Prune remote branches on local

git remote prune origin

Break up latest commit

git reset HEAD~

Create a tag

git tag version-2

Delete a tag

git push origin :refs/tags/version-2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment