Answers for "git set head"

0

git set head to commit

# Set a new HEAD to a branch
# Note that commit can be a commit hash or tag or another branch
git reset --hard $COMMIT
Posted by: Guest on November-22-2020
7

git reset

git reset --soft HEAD~3
git commit
git push —force-with-lease origin
Posted by: Guest on June-23-2020

Browse Popular Code Answers by Language