Created
December 14, 2021 13:30
-
-
Save m1entus/a4ee5a02377fe6ceac85449a6a0d0998 to your computer and use it in GitHub Desktop.
This will print SHA to closest develop as a parent
This file contains hidden or 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
#!/bin/bash | |
# This will print SHA to closest develop as a parent | |
echo $(git log --decorate | grep 'commit' | grep 'origin/develop' | head -n 1 | awk '{ print $2 }' | tr -d "\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment