I want to upload a bootstrap folder into bitbucket using sourcetree, but it doesn't recognize my folder when I copy it onto my local repository. I can create simple text files that are noticed, but Sourcetree doesn't respond to the folder.
Asked
Active
Viewed 1,483 times
0
-
Do you have a `.gitignore` file? – FreshD Oct 12 '18 at 14:45
-
how do i check? – Even Sørtveit Oct 12 '18 at 14:53
-
Is there a file called `.gitignore` in your repository? If yes check if the bootstrap folder is listed in there. Additionally you could post your git status to see what's happening – FreshD Oct 12 '18 at 14:55
2 Answers
1
Git does not track empty directories. If that is what you were trying to do, consider this question: How can I add an empty directory to a Git repository?

alfunx
- 3,080
- 1
- 12
- 23
1
Just create a .gitignore file inside that directory that contains these two lines:
*
!.gitignore

Aakash Pahuja
- 469
- 4
- 10