kwo*_*ony 7 git clone push git-checkout refspec
嗨,我想把东西推到特定的远程分支
我做的是当地的
git clone https://~~~.Something
cd https://~~~.Something
Run Code Online (Sandbox Code Playgroud)
我可以使用访问特定分支
git checkout origin/[branch]
Run Code Online (Sandbox Code Playgroud)
我想对我的特定分支起源/ [分支]提交一些东西但是当我尝试使用by来推送一些东西时
git push origin [branch]
Run Code Online (Sandbox Code Playgroud)
我收到了这个错误
error: src refspec [branch] does not match any.
error: failed to push some refs to 'https://github.com/kkammo/yonseitree.git'
Run Code Online (Sandbox Code Playgroud)
我试图解决这个问题,但我找不到任何解决方案...所以PLZ帮我TT
Lun*_*ong 36
这里有一个复制的问题,src refspec master在git中推送提交时不匹配任何问题
试着git show-ref看看你有什么裁判.是否有refs/heads/[branch]?
您可以尝试git push origin HEAD:[branch]更多与本地参考无关的解决方案.
这个对我有用.