我有一个本地git分支“trustly-payment”,我也有同名的远程存储库。当我尝试将代码从本地分支“trustly-payment”推送到远程分支“trustly-payment”时,我总是得到错误::
git push origin/trustly-payment trustly-payment
fatal: 'origin/trustly-payment' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
注1):存在远程存储库。
注2):当我使用PhpStorm推送时,它工作正常。
注3):正确的访问权限已经到位,否则PhpStorm将无法成功推送。
答案 0 :(得分:3)
你的语法错了。你想做什么
git push origin trustly-payment
如果由于您采用的非标准配置而无法在远程支付信任付款,您可能需要使用refspec,例如
git push origin trustly-payment:trustly-payment