Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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...

4,400 views 4 8
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