Answers for "git reset to a particular branch"

4

how to reset git branch to a certain commit.

git revert --no-commit 0766c053..HEAD
git commit
Posted by: Guest on April-18-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