You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I must have toggled an option somewhere and I cannot figure it out.
SourceTree has suddenly stopped showing "new" files.
What I mean by this is that, it used to be that I would add a new file to a git controlled directory and it would appear in SourceTree's unstaged files window with the green plus icon next to it.
This no longer happens in any of my repositories.
SourceTree detects if I modify an existing file, but not a newly added file.
I confirmed that I do not have a global .gitignore.
I did a test. I created a brand new repository. No global .gitignore and no local .gitignore. I created a file in the directory but SourceTree ignores it.
There is a dropdown above the file list. If you switched it to "Modified" instead of "Pending", it would only show tracked files that had changes.
It's worth mentioning that you'd also not see deleted or conflicted files.
Found a Solution - Check and Click on "Like" if it Works for You
The same thing happened with me as well. I pasted a new folder into the local repository, but the Source Tree app was not showing the new files. Generally, it shows any new files in the Unstaged Files pane with a green tick mark on each file. I tried lots of stuff, but following action worked.
1. Let's consider, the new folder whose files were not displayed as Folder A.
2. I created a new empty Folder B, copied all the files from Folder A and pasted into Folder B.
3. Deleted Folder A, and renamed Folder B as Folder A.
Over here, it's a matter of research, on finishing Step 2, I could see all my files in the Unstaged Files pane in Source Tree app. Then, even after Step 3, files were visible.
--------------------------------------------- Answer Ends Here--------------------------
Steps that didn't work:
1. Removed the .gitignore file
2. Removed the Read only file status for the whole folder
3. Deleted the local repository and re-cloned it
4. Used the different file filter types
If we want to see only modified files (modification into existing available files only) then only the "Modified" option is useful and if we want to see New Files added + Modified files then the "Pending" option is perfect to use it.
It will show you the New files added (with Question Mark sign in Unstaged section and if we stage newly added all/selective files then new files will show with Plus sign in to Staged section) and existing modified files with Horizontal 3 dots.