![](/img/trans.png)
[英]Conditionally delete a remote branch using `git push origin :branch-name` … but only if branch exists?
[英]Git push fork <branch-name> failed
你好,我正在嘗試從現有存儲庫創建一個新的 PR,我得到了這個錯誤:“錯誤:src refspec new does not match any”
這是我的步驟:
git remote add fork https://github.com/MY_USERNAME/SOME_PROJECT.git
git push fork new computers
我收到此錯誤: [已解決] 我的問題出在分支名稱上,它應該是new-computers
instand of new computers
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.