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
Community Members
Community Events
Community Groups

Cannot checkout branch due to untracked file

Hi folks,

File status in Branch1 displays clean for all files. Now I want to checkout Branch2, however, I get an error: The following untracked working tree files would be overwritten by checkout: file.svg.

The thing is that file.svg displays as clean. Also, a git clean -f doesn't change this, file.svg still is untracked according to checkout error. 
I've tried deleting the file.svg -> Staging > Comitting -> Push. Then adding file.svg back to local repo ->  Staging > Comitting -> Push. Checkout of Branch2 still triggers error about file.svg being untracked.

Any ideas?

Best regards,


0 answers

Suggest an answer

Log in or Sign up to answer
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...

61,121 views 127 27
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