How to diff two folders in two different repo?

I have created two repo named as 'bb201repo' and 'bb301repo' Now I have added two folders with files in these two repositories. Now in both repositories, I can see one commit of respective folder. Now I want to see the diff between all files containing in the both folder. No any changes made in files after commiting of folders into BitBucket. Both commit made in Master branch of each repository.

I have installed GitBash and TortoiseHG on my machine. Now how can I see the differences between these code files?

1 answer

1 accepted

1 vote
Timothy Chin Community Champion May 20, 2014

You technically can't use SCM tools for this. The content that you are trying to differenciate are not even in the same repository. You should be using external diff tools like the diff command in linux.

If I will add second folder in first repository, amd after that commit in repository one. Now, How can I diff between these two folders? "I am on Windows Machine."

Stop trying to use Git/Hg tools for this. The diff tools provided there are to show you what changed between commits, not to compare different files.

Download WinMerge, and use it to compare the two directories you talked about in your original question. It will allow you to navigate through the tree, will show you which files have differences, and will allow you to view differences between one pair of files at a time.

Thanks Seth. I understood now.

Can you please clarify one thing for me? I have customized a certain PHP script to my liking which is present on Github. Now when they come up with the new version, I want to see what chnages they have made in the new version vis-a-vis my custom version. Is this also not possible on GIT? You recommend Winmerge for such scenario as well?

Thanks for your help!

Timothy Chin Community Champion May 26, 2014

If you have forked/cloned your code from the original repository, you could still use SCM tools to differenciate.

Suggest an answer

Log in or Join to answer
Community showcase
Alexey Matveev
Published Saturday in Jira

How to run Jira in a docker container

Everything below is tested on Ubuntu 17.10. I prefer to use Jira in a docker container because: 1. I can install Jira with a couple of commands. 2. I can start and stop Jira just by starting and s...

169 views 3 8
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot