Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sub folder in Git project?

Tags:

git

clone

github

I have been using Subversion for a long time and now I have switched to Git.

Now I need to know how to get sub folders in my Git project?

I know sombody will make 2 projects for this but I dont need 2 projects for this. I need to clone a subfolder and not my main project.

I use github.com.

like image 347
ParisNakitaKejser Avatar asked Feb 01 '11 18:02

ParisNakitaKejser


1 Answers

When cloning a git repository you always clone the whole repository.

If you want subfolders in your project simply create them though. As soon as you add files inside them (git only tracks files no folders -> if a folder is empty you cannot add it to your repo), they can be committed to your repository by committing the files inside.

like image 86
ThiefMaster Avatar answered Oct 23 '22 22:10

ThiefMaster