Last active
July 3, 2017 07:19
-
-
Save yourtion/aa773740b9e0e5fe6cbbbcc8aeb7360f to your computer and use it in GitHub Desktop.
Get Last Git commit log
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
# Simple | |
git log --oneline -n 1 | |
# val | |
log=`git log --oneline -n 1` && echo $log | |
# Only Mesg | |
log=`git log --oneline -n 1` && $log=${log:8} && echo $log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment