A
A
ArtJH2020-08-12 18:53:20
git
ArtJH, 2020-08-12 18:53:20

How to add a specific folder to git?

git add .
git commit -m "Initial commit"
git push -u origin master

This will add everything. How about a specific folder?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2020-08-12
@ArtJH

git add directory
Will add all files and subdirectories from directory
But of course there must be files in directory. empty directories will not be added.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question