Skip to content

Instantly share code, notes, and snippets.

@ngelx
Last active March 20, 2023 05:49
Show Gist options
  • Save ngelx/b84fe4fb1c7bdceeced701f1829e6293 to your computer and use it in GitHub Desktop.
Save ngelx/b84fe4fb1c7bdceeced701f1829e6293 to your computer and use it in GitHub Desktop.

Local repo

git tag -d <tagname> # delete the old tag locally git push origin :refs/tags/<tagname> # delete the old tag remotely git tag <tagname> <commitId> # make a new tag locally git push --tags

Remote

git pull --tags -f

Pretty printing

git log --pretty=oneline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment