I have cloned a repo on my local PC, and I wish to create a directory structure within the local repo.
Do I just create a directory, then push the change back to the remote, or is there a specific process?
I have cloned a repo on my local PC, and I wish to create a directory structure within the local repo.
Do I just create a directory, then push the change back to the remote, or is there a specific process?
Git does not track directories; it will just implicitly create a directory when you create a file inside the directory. If you want to commit an empty directory, the convention is to create a file named .gitkeep
inside it.
Then just git add
that file, git commit
and git push
as normal.