【发布时间】:2011-12-08 07:42:06
【问题描述】:
我对远程 git repo 和本地 repo(使用 SmartGit)有疑问。
我正在通过 ssh 在我的服务器上创建远程仓库:
> cd ~
> git init repo.git
> cd repo.git
> touch readme
> git add .
> git commit -m "Initial commit"
从这里开始,一切似乎都很完美。现在我正在尝试使用带有命令的 Smartgit 克隆 repo
ssh://user@server:22/~/repo.git
一切都克隆得很好。我在自述文件中进行了更改,保存它并尝试提交和推送并收到错误:
The remote end hang up unexpectedly
git: '~/repo.git' is not a git command. See 'git --help'
我做错了什么? 谢谢。
【问题讨论】: