Answers for "git reset to head of branch"

5

git reset head of master

git fetch origin
git reset --hard origin/master
Posted by: Guest on April-14-2020
6

git soft reset head

git reset --soft HEAD^
//resets head by 1
Posted by: Guest on August-13-2020
0

git reset branch

git fetch origin
git reset --hard origin/branch_name
Posted by: Guest on November-05-2020
1

git reset hard to remote

git reset --hard origin/master; git commit -m 'reset to remote';git push --force local dev
Posted by: Guest on August-12-2020

Browse Popular Code Answers by Language