'What's the difference between 'git rm --cached', 'git restore --staged', and 'git reset'
I have come across the following three ways in order to unstage the files that were staged by the command 'git add'
git rm --cached <file>
git restore --staged <file>
git reset <file>
Their behaviors looked completely same when I ran those commands one by one. What exactly are the differences between them?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
