Sublime Text 2, kemayo git and Windows 7

I am going to a preface: I hope I can ask this question here because it is not so much programming, but the use of Sublime Text 2 and Git. I spent hours combing Kemayo instructions, something is missing.

  • Problem: I don't understand how to integrate Git with Sublime Text 2 using the kemayo plugin.
  • Problem 2: When I execute ctrl + shift + p (command palette), I don't get any Git commands.
  • Additional Information: I am new to Git, but I understand this enough to be able to use it on the standard command line.
  • Kemayo installation method: package manager
  • OS: Windows 7 x64
  • Git: Yes
  • where is git (the version of the window that is git ): C: \ git \ cmd \ git.cmd
  • I installed Git in this path because it does not contain spaces or special characters. Of course, since where git works, it also means that it is added to the enviro route.
  • Git works from the command line just by typing git

/Packs/User/Git.sublime-settings

Things I tried:

,"git_command": "'c:\\git\\bin\\git.exe'" ,"git_command": "c:/git/bin/git.exe" ,"git_command": "c:\\\\git\\\\bin\\\\git.exe" ,"git_command": "'c:\\git\\cmd\\git.cmd'" ,"git_command": "c:/git/cmd/git.cmd" ,"git_command": "c:\\\\git\\\\cmd\\\\git.cmd" ,"git_command": false 

and more.

Things I also don't understand:

  • Kemayo installation instructions are still a bit unclear. The only manual configuration that I have to do after installation through the package manager will copy Git.sublime-settings to the user folder? In my opinion, "git_command": false should work if Git is on the way (which I am pretty sure of that). If you wish, you can manually set the path using this line, but I can’t get it :(
  • How to configure it to use a BitBucket account? I have not met any instructions on how to connect it to a remote repo

I tried to provide as much information as possible about my problem, but there are a few steps in setting up Git + ST2, so I could forget to say something. If I left something, I will definitely come back and add. Thanks for reading!

+4
source share
4 answers

this:

 ,"git_command": "c:/git/bin/git.exe" 

is correct in accordance with the Win7 x64 format.

Ensure that the environment variable $ PATH has the root C: \ git \ cmd. Try

 echo %PATH% 

at the windows command prompt.

If you do not find this root in the answer, you need to add "C: \ git \ cmd" to the $ PATH variable. Java has a good guide on this: http://www.java.com/en/download/help/path.xml

+3
source
  • Add C: \ git \ cmd to the $ PATH environment variable

  • Open it>

    Open this file

  • , "git_command": "c: / git / bin / git.exe"

I have to work

Press - ctrl + shift + p and type - git

0
source

I found that changing the default settings does nothing. In the user settings, the following works for me:

 ,"git_command": "C:/cygwin/bin/git.exe" 

I am using git installation from cygwin without any changes, and also without any path settings.

Aside, thanks for the tips, everyone, I managed to install this in about five minutes.

0
source

If you use Github for Wundows , your github.exe will not be in a convenient location. The path you need is something like this:

C: \ Users {username} \ AppData \ Local \ GitHub \ PortableGit_ {somejunk} \ Bin \ git.exe

I tried to figure this out for too long, and none of the answers I found mentioned it, so I hope this helps!

0
source

All Articles