开发者

Git over SSH using IP address on a different port

I have a machine that i want to use as a Git server. There will be 2 contributors to the repository. I have set up an SSH account on the server which is a Windows machine. I pretty much followed http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/ the blog and steps.

I can set up git --bare init on the server it does create some folders but it does not have .git folder - which I am thinking is how it is supposed to be.

I connect to ssh using ssh -p -port ssh://xx.xx.xxx

However, when I try to connect using

git push ssh://xx.xx.xxx:port/myrepository.git

myrepository.git is bar开发者_JAVA百科e repository that I created on the server.

I get an error saying it does not seem to be a valid repository.

Please tell me what could be wrong?? I have a feeling that I am missing some configuration with the SSH. I am new to both SSH and git.

thanks


Where is myrepository.git located? Is it C:\myrepository.git?

If not, then from looking at Tim Davis's guide, you may want to specify the full path:

git push ssh://xx.xx.xxx:port/FULL/PATH/TO/myrepository.git
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜