Is there a method in which I list all the affected files git add.?
Does the following command solve the problem?
$ git ls-files -c -d -m -o
thanks
== Update ==
I tried git diff --statand found that they are different from what they do git add ..
Here is an example:
$ git status -s
D secondB.txt
M shareLineFile.txt
?? fileA.txt
$ git diff --stat
shareLineFile.txt | 1 +
1 file changed, 1 insertion(+)
$ git add . --dry-run
add 'shareLineFile.txt'
add 'fileA.txt'
q0987 source
share