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

Renaming a file doesn't work

I'm trying to rename a file from tradinghistory/settlementReports/2013/20130327 Report_Statement (1).csv to tradinghistory/settlementReports/2013/20130327 Report_Statement.csv. When I do this via the move command, it moves it to tradinghistory/history/settlementReports/2013/20130327 Report_Statement.csv - i.e. it adds an extraneous "history" directory in the target. If I rename source files from within IntelliJ, this works, but the same issue happens within SourceTree. Thanks

3 answers

1 accepted

0 votes
Answer accepted

Created but I don't think I have the ability to assign to you. Thanks!

Why don't you use your file manager to rename/move the file? You then will see an untracked and a missing file, but after committing both, the history will be linked.

Yes I can do this, but I don't see how it's going to keep track of file history. For instance if I have and, if I delete these and add and I think it would be pretty amazing if SourceTree could figure out whether was renamed to or

Not SourceTree is amazing in detected renamed file history, but Git is - and hence every Git client. Check out

Hi Chris,

I've just tried this using your exact same file structure and filenames and have been unable to reproduce the problem you're describing. Could you re-test this? Are you sure there isn't another folder tradinghistory/history which has the same file structure and you're actually trying to rename that a file in that directory instead?

Thanks in advance

Hi Kieran, Thanks for your reply. It's 100% repeatable, which is good and bad I guess! I have a set of 4 jpgs which I can send you to show the problem, maybe you could let me know where I can upload them? Also, I suspect this isn't the right forum to be raising bug reports, so please let me know if there's a better place for me to be reporting this. Thanks, Chris

Hi Chris,

You're right, JAC is where we have bug reports over at The project name is SRCTREE and you can assign it to me. Just detail as much as you can and we can go from there.


Suggest an answer

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

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

1,987 views 0 10
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