Skip to content

Instantly share code, notes, and snippets.

@bouli
Last active November 7, 2025 12:05
Show Gist options
  • Select an option

  • Save bouli/3a7731b33f88b59bb666b85830607b5c to your computer and use it in GitHub Desktop.

Select an option

Save bouli/3a7731b33f88b59bb666b85830607b5c to your computer and use it in GitHub Desktop.
git cheasheet

git-bouli-cheatsheet.md

Managing TAGS

Create new tag

git tag <tag-to-create>

Check last tag

git describe --tags --abbrev=0

Delete a tag

git tag -d <tag-name>

Delete a remote tag

git push <remote> :<tag-name>

Pushing commits with a tag

git push <remote> <branch> --tags

Rewriting and remembering the history

Interactive rebase

git rebase -i HEAD~<number>

thanks @lupomontero

Formating git log

git log <last-tag>..HEAD --oneline --format="* %h %s (%an)"
  • %h: commit hash
  • %s: comment string
  • %an: author name

thanks @lupomontero

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