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

Accepted Answer
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 Sign up to answer
Community showcase
Posted 6 hours ago in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

15 views 0 1
View post

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