我对远程 git 存储库和本地存储库(使用 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'
我究竟做错了什么?谢谢你。