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?

  • Gitk: Setting “Ignore space change” option to be true by default
  • Where are the git commit ids stored?
  • Can I implement my own Python-based git merge strategy?
  • git-svn upstream status check
  • How to deploy a website on Heroku?
  • How to manage the open source projects patches which can't push to upstream?
  • Git - Remove commit from history
  • Travis determine which files changed
  • PhpStorm - advanced settings for diff viewer
  • Aside from the resulting git tree structure, are there any important differences between git pull vs git fetch + git rebase?
  • Jenkin's Git Build Trigger: build every intermediate revision, not just HEAD?
  • Bash prefix command name for subcommands
  • One Solution collect form web for “git diff files not in repository against files in repository”

    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>

    Git Baby is a git and github fan, let's start git clone.