user1781186
user1781186

Reputation:

Git add single subdirectory recursively

I know I can add everything in my working directory with the following syntax:

git add .

I also know I can add the contents of a subdirectory with this syntax:

git add subdir/*

But how do I add everything (recursively) in a single subdirectory? I imagine it looks something like this:

git add subdir/.

Upvotes: 3

Views: 9217

Answers (1)

runDOSrun
runDOSrun

Reputation: 11005

git add subdir will add subdir and everything in it recursively.

Upvotes: 3

Related Questions