Skip to content

Instantly share code, notes, and snippets.

@leye0
Created September 15, 2022 15:39
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 leye0/6f4cc9d2d9e0930f9e051f187b6dd38a to your computer and use it in GitHub Desktop.
Save leye0/6f4cc9d2d9e0930f9e051f187b6dd38a to your computer and use it in GitHub Desktop.
git logging cheat sheet
# Get commit# for tag
git rev-list -n 1 tags/${myTag}
# Get branches containing commit#
git branch -a --contains ${myCommit}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment