1 |
$ git add -u |
This tells git to automatically stage tracked files — including deleting the previously tracked files.
To stage your whole working tree:
1 |
$ git add -u :/ |
To stage just the current path:
1 |
$ git add -u . |
from:https://blog.csdn.net/dahailantian1/article/details/79475644