我的远程git仓库和本地仓库(使用SmartGit)存在问题。GIT - '〜/ repo.git /'不是git命令
我通过ssh建立我的服务器上的远程回购:
> cd ~
> git init repo.git
> cd repo.git
> touch readme
> git add .
> git commit -m "Initial commit"
从这里一切都显得完美。现在我试图通过命令使用Smartgit克隆回购
ssh://[email protected]:22/~/repo.git
一切都很好克隆。我在自述文件中进行了更改,将其保存并尝试提交并推送并获取错误:
The remote end hang up unexpectedly
git: '~/repo.git' is not a git command. See 'git --help'
我在做什么错了? 谢谢。
我可以在SmartGit中做到这一点? – bbrodriges
@ bender.rodriges - 从命令行执行。 – manojlds
这是我得到的http://i.imgur.com/7Erh3.gif – bbrodriges