Answers for "how to reset a branch after commit"

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

git lost commit after reset

git reflog is your friend.
Find the commit that you want to be on in that list and you can reset to it
for example:git reset --hard e870e41

(If you didn't commit your changes... you might be in trouble - commit early, and commit often!)
Posted by: Guest on July-14-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language