I am to lazy to git add
/git reset
files one by one. And I don't know how to do this.
Tried git add -A
(found on the internet). But It have added all "new files" to the index.
How to revert it back, keeping modified files?
Asked
Active
Viewed 60 times
0

4esn0k
- 9,789
- 7
- 33
- 40
-
3Possible duplicate of [How to remove local (untracked) files from the current Git working tree?](https://stackoverflow.com/questions/61212/how-to-remove-local-untracked-files-from-the-current-git-working-tree) – Marc Feb 28 '19 at 12:49
1 Answers
-1
git add .
will add a whole current directory with all files and subfolders

Mateusz Gruszczynski
- 1,421
- 10
- 18