git diff files not in repository against files in repository

479 views Asked by At

I have taken over a project where files on a server are not in a git repository. A git repository was created at some point, but files were still edited on the server without being added to the repository and tracked. Is there a way that I can perform a git diff on the server files against a git repository to see how far off I am?

1

There are 1 answers

1
Loukan ElKadi On

Did you try using vimdiff instead of git diff?

You can compare any two files using vimdiff, it'll open both files next to each other, and highlight the changes.

vimdiff <path_to_file1> <path_to_file2>