I'm trying to automate an update process. The process is basically:
Everything is working as expected except step 6. I can commit the changes, but how do I commit any new files? I tried git add .
as I've read elsewhere but that doesn't catch all the new files in all the sub directories. Is there an easy way to do a "Add all new files"?
git add -A
will stage all modifications to the working tree. Add really means "include in the index" or "add changes to the index".
Take a look here. Perhaps you're interested in git add -u
or git add -A
.
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