add note about 'git add -u '

This commit is contained in:
Karthik Siddarth 2019-10-15 18:33:15 +05:30
parent e0ff2c06b9
commit 5fe1d7992f
1 changed files with 8 additions and 0 deletions

View File

@ -561,6 +561,14 @@ will do the rest of the work for you.
## Staging
<a href="#i-want-to-stage-all-tracked-file-and-leave-untracked-files"></a>
### I want to stage all tracked file and leave untracked files
```sh
(my-branch*)$ git add -u
```
<a href="#i-need-to-add-staged-changes-to-the-previous-commit"></a>
### I need to add staged changes to the previous commit