Back

Explore Courses Blog Tutorials Interview Questions
+15 votes
2 views
in DevOps and Agile by (19.7k points)

I'm trying to automate an update process. The process is basically:

  1. Check out repo A
  2. Check out repo B
  3. Run a process in repo B that updates/creates a bunch of files
  4. Copy files into repo A
  5. Compile repo A and make sure it doesn't fail
  6. Commit changes into repo A and repo B
  7. Push changes to the remote server.

Everything is working as expected except step 6. I can commit the changes, but how do I commit any new files? I tried as I've read elsewhere but that doesn't catch all the new files in all the subdirectories. Is there an easy way to do a "Add all new files"?

1 Answer

+10 votes
by (62.9k points)

You can use git add -A  or the long subcommand git add --all

Browse Categories

...