How to show the git head hash in bash?

Member

by adan , in category: Third Party Scripts , 7 months ago

How to show the git head hash in bash?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by ryan.murray , 7 months ago

@adan 

To show the git head hash in bash, you can use the following command:

1
git rev-parse HEAD


This command will output the full hash of the current HEAD commit in your Git repository.

Related Threads:

How to invoke pycharm from git bash?
How to find the git hash for an npm release?
How to update the display of remote hash in git log?
What does `git show --reverse` do?
How to decrypt hash password in laravel?
How to disable head method in .htaccess?