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

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
Answer accepted
Timothy Chin Community Leader 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 Leader 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 in Off-topic

Friday Fun: Virtual dance party!

Do dance parties help you relieve stress? How about *virtual dance parties*? My team holds virtual dance parties to brighten the mood of a tough day or celebrate an upcoming weekend.  Want t...

152 views 21 8
Join discussion

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