git diff files not in repository against files in repository
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?
One Solution collect form web for “git diff files not in repository against files in repository”
Did you try using
vimdiff instead of
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>