Answers for "reset development branch to main"

23

reset a branch to master

git fetch origin
git reset --hard origin/master
Posted by: Guest on March-11-2020
0

reset branch to other branch

git reset --hard master # master can be any other branch that is already contained in current branch
Posted by: Guest on October-08-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language