I initialized a Git repository outside emacs, added and committed the files.
Now if I a file in emacs that is under version control by Git and run C-x v =
emacs tells me This file is not under version control
.
It seems emacs missed that I added this file to Git already. How can I tell emacs that this file (and the whole directory) is already in Git, so that I can use the vc-git-*
commands?
M-: (executable-find "git")
knows where yourgit
binary lives -- the relevant directory needs to be listed inC-h v exec-path
.vc-
commands work as I would have expected. Sorry for the noise. :-(