View the file history in the remote repository


I know I can view the history of a file in my local database within SourceTree by right clicking on the file and selecting "Log Selected". Is there a way to see the history of a file in the remote repository before doing a pull?



2 answers

1 accepted

If you're using Git, ou can use 'Fetch' to retrieve the remote branch state (but without pulling it into your local branches), then select any of the commits in the log which are outside your local branch state - the history functions here work exactly the same way as for commits that are in your local branches. YOu can toggle the remote branches on/off in the scope bar above the log.

In Mercurial, there's no way to do this right now. In future we intend to allow more detailed information to be provided in the 'incoming' view before you confirm a pull, although in this case it's likely to be limited to just looking at each incoming commit in turn rather than having a unified remote view of file history.

This is how I do it: go to Working Copy, change the file filter from Pending to "All files", and then either browse your repository or just type part of the file name in the filter text edit field at the top right. That filter works great as a way to drill down quickly on the file you are looking for. When you have found the file you want to know the history of: right click and select "Log Selected...", et vôila! :-)

The resulting list shows the dates the files was changed, who made the change, their commit comments, and of course a detailed breakdown of the exact changes.

Hope this helps.


Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,586 views 26 12
Join discussion

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