When I first installed GitGutter, it kept saying that it needed Git and the path specified.
I first moved the Git in the same folder, but then I decided to switch to its original folder and specified the path in the environment variable.
It stopped showing the error message, but it is still not working.
Why is it not working?
Here is what I have tried:
- This is the repository that I created: https://github.com/GroxTheProgrammer/concerning-git-gutter.
- I then downloaded the zip.
Here is before I add a bunch of spaces:
This is after I add the spaces:
As you can see, GitGutter does not display anything indicating my file has changed.
Why?
Try going to this link. However, this assumes that you have gotten git up and running. It might be what you are looking for https://github.com/jisaacks/GitGutter/issues/152. Hope that helps!
You need to make sure to restart SublimeText after having changing the $PATH
(Mac, Linux) or %PATH%
(Windows)
Check your version of SublimeText3 and GitGutter
On Windows, make sure to uncompress the archive PortableGit-2.10.2-64-bit.7z.exe
anywhere you want and reference that path.
Finally, make sure the files you are editing in SublileText3 are part of a git repo.
Here is the repository that I created: https://github.com/GroxTheProgrammer/concerning-git-gutter. I then downloaded the zip.
Don't download the zip.
Do:
cd c:\mywork
git clone https://github.com/GroxTheProgrammer/concerning-git-gutter
cd concerning-git-gutter
Then edit a file like C:\mywork\concerning-git-gutter\README.md
in SublimeText (with GitGutter installed)
来源:https://stackoverflow.com/questions/40570816/sublime-text-3-git-gutter-not-working