DEV Community

Discussion on: How to git when you're offline: proxying through bare repositories

Collapse
 
moopet profile image
Ben Sinclair

You can use ssh to create a reverse tunnel. The Windows machine starts the ssh session, and forwards a port on the Linux box to the external git server (or itself if you're using a bare repo on the Windows machine). Then from the linux machine you set the git remote to be "localhost" and as far as Linux is concerned the git server is running locally.

Thread Thread
 
squ94wk profile image
squ94wk

Thanks. I guess I didn't know that you could tunnel a port that is neither on the ssh client or server machine.