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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With