Greyed out Modified files wont commit?

A friend and i are using SourceTree to make a game in Unity and i recently went through and reorganized all of the files and folders and deleted a bunch of extra files. Now when i try to commit however there is only one file with the yellow icon next to it and all the rest are greyed out. When i commit only this yellow file is available for pushing.

I am fairly new to SourceTree, but havent been able to find help elsewhere.

Any suggestions?

Thanks.

1 answer

1 accepted

When you say 'greyed out', do you mean they have an icon like a grey circle with a horizontal line? That means 'Missing' (if you hover your pointer over the icon you'll get a tooltip telling you what status it's indicating).

'Missing' files are those which used to be tracked but are now missing in your working copy, which is consistent with you deleting a bunch of files. Right now, your repository history thinks those files should still be there, so if you want to get rid of them permanently, you need to tell ST that you intended to get rid of them, and then commit this.

To indicate that you really did mean to delete the files, you can do one of 2 things:

  1. Select all the Missing files and click Remove (right-click menu, or toolbar), or
  2. Just click the Add/Remove button on the toolbar, which will automatically mark any Missing files as Removed (and also add any untracked files that aren't being ignored)

Either one will turn these files into 'Removed' rather than 'Missing', which means the icon changes to a red version of the same icon. When you commit these changes, you permanently mark the files as removed from your repository.

Thank you that answered my question !

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

262 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot