尝试在git hub上拉请求,但是

问题描述

我试图PR我的脚本,但是没有用。在我先执行git commit -m然后执行git push之后,我得到了这个错误

Please make sure you have the correct access rights
and the repository exists.

我该如何解决?谢谢

解决方法

检查您的远程URL:

cd /path/to/local/repository
git remote -v

其URL可能仍引用origina存储库,而不是of your fork

在这种情况下,请使用以下网址更改网址:

git remote set-url origin https://github.com/<me>/<myFork>