add node on using pathspec

This commit is contained in:
Karthik Siddarth Durai 2019-10-24 07:14:36 +05:30
parent cbf9a5f8b7
commit 5ba53de992
1 changed files with 10 additions and 0 deletions

View File

@ -571,6 +571,16 @@ will do the rest of the work for you.
(my-branch*)$ git add -u
```
#### To stage part of tracked files
```sh
to stage files with ext .txt
(my-branch*)$ git add -u *.txt
to stage all files inside directory src
(my-branch*)$ git add -u src/
```
<a href="#i-need-to-add-staged-changes-to-the-previous-commit"></a>
### I need to add staged changes to the previous commit