Created
April 26, 2021 17:32
-
-
Save learnit-codeit/357068ce305a02ce81d44800bf043d3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#When you use --soft parameter: Git will reset all uncommitted changes. But changes are left staged (index). | |
git reset --soft | |
#When you use --mixed (default)parameter: Git will reset all uncommitted changes as well as unstaged changes. But changes are left in working tree. | |
git reset --mixed | |
#When you use --hard parameter: Git will reset all uncommitted changes, unstaged ones, as well as deleted changes, nothing's left. | |
git reset --hard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment