Answers for "google git reset"

7

git reset

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

git reset hard directory

git restore --source=HEAD --staged --worktree -- aDirectory
# or, shorter
git restore -s@ -SW  -- aDirectory
Posted by: Guest on December-28-2020

Browse Popular Code Answers by Language