git 提交的时候 报错 git: ‘remote-gitssh’ is not a git command. See ‘git --help’.
1. 先检查自己是否有id_ras.pub 把公钥复制粘贴到git生成ssh
2. git remote add origin ssh://user@host/srv/git/example 添加远程仓库
3. 添加如果报 remote origin already exists.说明之前的仓库还没有删除
4. git remote rm origin 删除远程仓库
5. git remote add origin ssh://user@host/srv/git/example 重新添加
6. git add . 添加所有文件
7. git commit -m 'initialize the project'
8. $ git pull --rebase origin master
9. $ git push -u origin master
10.就可以啦