-2
I have in git a code where my colleagues cloned and sent me pull requests, but I think there’s duplicate code between them.
I added their repositories to my machine and want to compare a file from different repositories.
Example: compare the file Arduino/main/main.ino
from the remote repository "so-and-so" with the same file as the remote repository "bertrano".
I suggest downloading a tool like Winmerge and using it to compare the root folders of each clone. You can view the comparison between each file of the subfolders.
– Piovezan
I don’t use Windows. ( I was trying to differentiate with the command itself
git diff
and using the commit code I was able to differentiate all the files between them (the commit’s ), unfortunately I could not, not only a file as expected. Solves for now because it had two different files between them, but I will still search a solution as I want, file by file.– Vinicius de Santana
If you only want to compare files, line by line, I recommend using Meld. A visual diff tool.
– Rafael Matsumoto