Git: Undo
Here are some undo commands, depending on situation.
# To go back to staging from commit git reset --soft HEAD~ # Unstaging git reset HEAD <file> # Undo Changes Made to the File git checkout -- <file>
Solution Architect, Software Engineer, Trainer, IT Consultant and Blogger
Here are some undo commands, depending on situation.
# To go back to staging from commit git reset --soft HEAD~ # Unstaging git reset HEAD <file> # Undo Changes Made to the File git checkout -- <file>