Answers for "get last commit hash"

3

get last git hash

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
10

how do i get the last commit

$ git reset --soft HEAD~1
Posted by: Guest on April-15-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language