Sublime Text 3 Git Gutter not working

那年仲夏 提交于 2019-12-08 03:30:44

问题


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?


回答1:


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!




回答2:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!