IN order to revert a item from staging area we use
git reset filename or git reset .
however git also gives me a prompt (mentioned below) after I do
Changes to be committed: (use "git restore --staged
..." to unstage)
This is also unstages file from staging area.
Also in order to revert changes there is known command
git checkout filename
However same can be achieved using
git restore filename
What are the fundamental differences between them? and why git is pushing forward to use git restore