Difference between Git Hard , Soft , Mixed Reset

Hard Reset : When we do --hard reset wheather our changes be in working tree or Index/staging area  or in Local repository the changes will be removed or deleted or moved to bin.
Ex : git reset --hard

Soft Reset : When we do --soft reset if our changes be in Local repository the changes will be moved back to Staging area.
Ex : git reset --soft

Mixed Reset : When we do --mixed reset if our changes be in Local repo or in Staging/Index area those will be moved to working tree area.
Ex : git reset --mixed

Comments