To find a git commit id (or hash), you can simply use the git log
command. This would show you the commit history, listing the commits in chronological order, with the latest commit first. The result for it would look something like the following:
commit 3ba53ff050ef253058088eff5 Author: Designcise Date: Sat Dec 12 15:13:23 2020 +0100 Updated tests commit 45db03581b3b5581ed7cc44dbc Author: Designcise Date: Sun Dec 6 22:06:47 2020 +0100 Code Cleanup ...
The commit id is the (unique SHA-1) string that appears right after the word "commit".
This post was published by Daniyal Hamid. Daniyal currently works as the Head of Engineering in Germany and has 20+ years of experience in software engineering, design and marketing. Please show your love and support by sharing this post.