Answers for "make current commit head"

0

make current commit head

git checkout <branch-to-modify-head>
git reset --hard <commit-hash-id-to-put-as-head>
git push -f
Posted by: Guest on May-04-2022
0

make current commit head

git revert commit-id
Posted by: Guest on May-04-2022
0

make current commit head

git reset --hard <commit-SHA>
git push origin HEAD:<name-of-remote-branch>
Posted by: Guest on May-04-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language