Sublime Forum

GitGutter with a non-local repo - is it possisble?

#1

Apologies in advance if this should have been placed in plugins development.
Does anyone know if it is possible to configure use the gitgutter package on a mac where the repo is on a linux box?
I have sublime and gitkraken installed on my mac but my repo is actually on my linux dev box, so the repo is actually “git+ssh://remoteserver/blah”.
I have the git binary on the mac so have gitgutter with only one line configured so far:
// GitGutter Settings - User
{
“git_binary”: “/usr/bin/git”,
}

but the documentation makes no reference to configuring where the repo is and appears to assume it is in the CWD of the sublime project.

I usually issue my git commands at the cmdline on the linux box in a mac terminal session but would love to have the gitgutter functionality available without having to have a local repo, and that’s because my linux box runs the apache server using the code in my development repo, so that any changes I make in sublime to the current branch are reflected immediately in my browser to “http://remoteserver/blah
Any suggestions (or an absolute ‘no it won’t work’) would be helpful. Thanks in advance.
Lee

0 Likes

#2

How are you working on the repo without having at least a network drive of it? If do you do have a network drive, then git should work from either end as long as the .git folder is there.

0 Likes

#3

Thanks very much for the reply. I do indeed have a disk mounted and shared but because gitgutter didn’t work, I put it down to the fact that it was not using a local repository (all examples I have seen are on the single machine).
I experimented with cloning the repo to my local drive, creating a new project in sublime and still gitgutter doesn’t work, so it isn’t to do with the local/remote question I posed.
I also cloned one of my small github repos to the mac but still no improvement.
I have established a new topic with a couple of screenshots illustrating the issue so this one is effectively redundant now.
Appeciated :slight_smile:

0 Likes