Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git rev-parse --short HEAD

#It helps you to find out the commit ID of the current HEAD
git rev-parse HEAD
#OR if you want the shorter commit
git rev-parse --short HEAD
#If you find the latest commit of another branch, you can do
git rev-parse <local-branch-name>
git rev-parse origin/<remote-branch-name>
Comment

PREVIOUS NEXT
Code Example
Shell :: loop file bash 
Shell :: linux external hard drive chmod 
Shell :: how to prevent ubuntu from sleeping when lid is closed 
Shell :: bash red text 
Shell :: kubectl neat 
Shell :: list only directories in linux 
Shell :: md5 bash 
Shell :: git checkout single file 
Shell :: how to install julia on ubuntu 
Shell :: git config email 
Shell :: body-parser use 
Shell :: install lando linux 
Shell :: install forge server command line 
Shell :: ubuntu find filename recursive 
Shell :: ssh and execute command in one line 
Shell :: conky ubuntu 20.04 install 
Shell :: clear untracked files git 
Shell :: remove git from angular oproject 
Shell :: git flow hotfix 
Shell :: k8 delete deployment 
Shell :: git show list of stashes 
Shell :: pem to crt 
Shell :: linux mail delete all 
Shell :: powershell count lines of code 
Shell :: git heroku commit 
Shell :: certbot configure 
Shell :: install brew on mac m1 
Shell :: Command for installing Brave browser 
Shell :: install amplify cli on mac 
Shell :: discard all changes git 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =