Answers for "get latest commit from git"

3

git get current commit

git rev-parse HEAD
Posted by: Guest on November-06-2020
0

git get last commit id

git log --format="%H" -n 1
Posted by: Guest on August-21-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language