1 windows git ssh ip-address msysgit
我有一台我想用作 Git 服务器的机器。存储库将有 2 个贡献者。我已经在作为 Windows 机器的服务器上设置了一个 SSH 帐户。我非常关注http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/的博客和步骤。
我可以在服务器上设置 git --bare init 它确实创建了一些文件夹,但它没有 .git 文件夹 - 我认为它应该是这样的。
我使用 ssh -p -port ssh://xx.xx.xxx 连接到 ssh
但是,当我尝试使用连接时
git push ssh://xx.xx.xxx:port/myrepository.git
myrepository.git 是我在服务器上创建的裸仓库。
我收到一条错误消息,说它似乎不是一个有效的存储库。
请告诉我可能有什么问题??我有一种感觉,我缺少 SSH 的一些配置。我是 SSH 和 git 的新手。
谢谢
myrepository.git位于哪里?是C:\myrepository.git吗?
如果没有,那么通过查看 Tim Davis 的指南,您可能需要指定完整路径:
git push ssh://xx.xx.xxx:port/FULL/PATH/TO/myrepository.git
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8003 次 |
| 最近记录: |