我已经在电脑上有现有的代码,然后我注册了sourceforge帐户并启动了一个Git项目。现在我需要将本地项目发送到sourceforge远程空间。在sf上有说明页面:
第一次使用Git
cd miorep-code
git init
git commit -a -m 'Initial commit'
git remote add origin ssh://****/p/miorep/code
git push origin master
现有的代码库
cd miorep-code
git remote add origin ssh://****/p/miorep/code
git push origin master
如果我按照第一组指令操作,当我执行git commit -a -m 'Initial commit'
时,会出现以下错误信息:如果我按照第二组指令操作,当我执行最后一个命令时,会出现以下错误信息:"Fatal: Paths with -a does not make sense"
请问在我的情况下正确的指令集是什么?为什么会出现这个错误?error: src refspec master does not match any. error: failed to push some refs to 'ssh://**/p/ravenna/code'