Created
September 15, 2022 15:39
-
-
Save leye0/6f4cc9d2d9e0930f9e051f187b6dd38a to your computer and use it in GitHub Desktop.
git logging cheat sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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