Skip to content

Instantly share code, notes, and snippets.

@learnit-codeit
Created April 26, 2021 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save learnit-codeit/357068ce305a02ce81d44800bf043d3d to your computer and use it in GitHub Desktop.
Save learnit-codeit/357068ce305a02ce81d44800bf043d3d to your computer and use it in GitHub Desktop.
#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