我想克隆一個分支,進行更改並推入同一分支。git推分支src refspec不匹配任何
我這樣做:
mkdir myfolder
cd myfolder
git init
git clone "myurl" -b "mybranch"
git remote add origin "myurl"
edit "myfile.txt"
git add "myfile.txt"
git commit -m "my comment"
git push origin "mybranch"
,但我得到這個錯誤:
error: src refspec "mybranch" does not match any
error: failed to push some refs to "myurl"
我該怎麼辦?
(HTTP的可能的複製[在混帳推提交時,SRC的Refspec主不符合任何]://計算器.com/questions/4181861/src-refspec-master-does-not-match-any-when-pushing-commitits-in-git) – 2014-06-06 04:41:23