Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,347
Community Members
 
Community Events
165
Community Groups

How to solve the Unstaged files seen as Modified

I have a list of Unstaged files, with the "Modified" icon on them, how do I solve them? Is it ok to runa "Stage all"? And why do I see those files, since they are not mines?

 

1 answer

1 accepted

0 votes
Answer accepted
Mikael Sandberg Community Leader Oct 07, 2020

Hi @Dan Raihert,

Welcome to Atlassian Community!

Any file that is in the repository and is modified, either manually or by an editor (Visual Studio for example) will show up as modified in Sourcetree. You can use stage all if all changes should be part of your next commit.

You mentioned that the modified files are not yours, which leads me to guess that you did a merge or pull, and those files are changed by someone else on your team. If that is the case you have to stage those files too in order to complete the merge. If the files were changed by your editor, you should consider investigating if those files should be part of the repository or not. If the answer is no, then you should delete them, and then add them to your .gitignore file, that way the next time the editor changes they will not be shown as modified in Sourcetree.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

60,956 views 127 26
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you