Suppose I have a list of files (newline delimited) in a file, and I want to git add
all these files.
Is there some way to do this directly?
I have checked online and looked at git help add
, but did not see anything that helps.
Suppose I have a list of files (newline delimited) in a file, and I want to git add
all these files.
Is there some way to do this directly?
I have checked online and looked at git help add
, but did not see anything that helps.
You can use xargs:
xargs -a file -d '\n' git add