For Git 1.x
1 |
$ git add -u |
This tells git to automatically stage tracked files — including deleting the previously tracked files. For Git 2.0 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
View Details