Compare remote repositories

-2

I have in git a code in which my colleagues cloned and sent me pull requests, but I think they have duplicate code between them.

I've added their repositories to my machine and I want to compare a file from different repositories.

Example: compare the file Arduino/main/main.ino of the remote repository "so-and-so" with the same file as the "bertrano" remote repository.

    
asked by anonymous 16.11.2018 / 19:17

1 answer

0
git diff remote1/branch remote2/branch file.rb

Being remote1 and remote2 the name of the remote repositories, and branch the branch of Git you want to buy. See the documentation for git-diff .

    
26.11.2018 / 15:17