Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Source Tree and Github not seeing all of my files

I tried creating a repository of all the files I am using in this project.

And for some reason when I added files to my local directory, only some of them were picked up by SourceTree and commited and pushed to Github.

Here is what the local directory looks like (Each folder contains files):

enter image description here

The folders boxed in red are not being seen at all by SourceTree.

Here is what displayed in SourceTree:

enter image description here

As you can see from the screenshot, Only the Vb.net project and the javascript project were picked up by SoruceTree. What do I need to do to pickup those other folders of files?

like image 239
jth41 Avatar asked Sep 14 '13 17:09

jth41


People also ask

How do I see all branches in Sourcetree?

To view local branches in Sourcetree, click on the Branches tab. To view remote branches, click on the Remotes tab.

How do I view source tree file history?

Users can navigate to the log/history window by clicking the tick-shaped icon button at the top-left section. Users can also alternatively press Command+1, or navigate it through View > File Status View.

Does source tree work with GitHub?

For instance, you can start by creating a project on Github and then connect it to your SourceTree software so that later on, when you update your code or include new code you can upload the data on Github using SourceTree. To start work with SourceTree, create new project on GitHub (click 'Start a Project'.)


1 Answers

I met the same problem, and after trying @khanmizan's method(which didn't work in my case) and searching more in the internet, I got the solution: in stead of using

git add .

I used

git add . -f

The original answer is here: commit a file in bin directory

like image 144
Zhang Tianbao Avatar answered Sep 30 '22 15:09

Zhang Tianbao