Issue while committing files back to Git repository

Hi All,

When I try to commit files, back into git repository, all the files I have modified do not show up. It was working fine before. This is really becoming a problem. Settings etc are the same as before. I have tried restarting Sourcetree, my system etcc, but no luck.

Any thoughts/pointers on how to resolve this will be really helpful.Version is the one I am using.

4 answers

Can you clarify what you mean by "the files I have modified do not show up"? Do they disappear from your working copy/file system? Are the modified files not being displayed as modified in SourceTree? If the latter, which view(s) in SourceTree are they missing from? A screenshot might be helpful.

Hi Seth, 

Thank you for your reply. Screenshot as below. Not able to provide the complete screenshot, due to

certain restrictions. I usually select files from Unstaged files section and stage it. However, not all the files I am working on, shows up in the Unstaged files section.


0 votes

You have to add the modified files to the stage. Check "Unstaged files" and add the files you want to the stage before committing. Hope that is what you are after!

Hi Jobin,

The problem is I am unable to find the files under "Unstaged files" section.

Hmm. I expected to see the filter at the top set to something other than "Pending", which should show any files that can be added or commited.

What happens if you open the terminal (using the Terminal button) and run a "git status" command?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,235 views 4 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you