Stash Working Directory
Learn to temporarily save noncommitted changes so we can switch between branches without losing our work.
We'll cover the following
In Git, we have different undo approaches for different scenarios. It depends on what we need to do.The following is a list of scenarios in which an undo action is required:
-
Amend the last commit.
-
Reset several commits.
-
Revert changes after pushing to a remote branch.
-
Rebase commits into another commit.
Get hands-on with 1400+ tech skills courses.