Articles → Git → GIT Reset Command
GIT Reset Command
Purpose
Different Types Of Git Rest Command
- Soft
- Mixed
- Hard
Soft Reset
- It does not touch any file in working or staging area.
- It moves the head pointer to the latest commit.
Mixed Reset
- It does not touch any file in working area.
- Resets the staging area i.e. tracked changes becomes untracked changes
- It moves the head pointer to the latest commit.
Hard Reset
- Resets the files in staging area and working area same as the versions committed.
- It moves the head pointer to the latest commit.