A demo of sshgate for Git push/pull
go get github.com/xpensia/git-democd $GOPATH/src/github.com/xpensia/git-demo- Generate an ssh key with
ssh-keygen -t rsaand save it in ./id_rsa
PORT=2222 go run app.go
In an other terminal type :
git pull ssh://[email protected]:2222/full.absolute.path.to.git.folder master:test-git-demo