Skip to content
Advertisement

TortoiseGit – copy via sftp on pull

Intro:

I have 2 folders which are on the same GIT repository, one is on a very slow Samba network drive, and one locally. using GIT on samba is extremely slow, but the Samba is my server, which is actually vmplayer running ubuntu server on a windows machine.

My question is:

is it possible to automatically copy files from the local directory, after a pull has been done, to the other samba folder. I do this in Sublime text editor (via addon), but it copies only when I save a file. I want that functionality also on GIT. (i’m mainly using TortoiseGit)

thanks.

Advertisement

Answer

Yes, there are git hooks. Have a look at

git help hooks

you can define what’s automatically to be done after a pull. However, your system sounds insane and you should think about not doing that with the slow share. Also, I don’t understand why an Ubuntu on a VMWare player would be really slow, unless you royally messed up configuration (not to mention I really don’t understand why you wouldn’t just let your windows do the shares, instead of letting a linux VM do that — and I don’t really like windows at all).

Advertisement