Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

make current commit head

git checkout <branch-to-modify-head>
git reset --hard <commit-hash-id-to-put-as-head>
git push -f
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #current #commit #head
ADD COMMENT
Topic
Name
2+1 =