Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

make current commit head

git reset --hard <commit-SHA>
git push origin HEAD:<name-of-remote-branch>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #current #commit #head
ADD COMMENT
Topic
Name
2+5 =