Answers for "git reset\"

2

git reset

# uncommit changes, changes are left staged (index).
git reset --soft

# (default): uncommit + unstage changes, changes are left in working tree.
git reset --mixed

# uncommit + unstage + delete changes, nothing left.
git reset --hard
Posted by: Guest on April-15-2022
10

git reset

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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language