我最近将一个repo克隆到本地驱动器,但现在我想将所有更改推送到一个全新的repo。然而,git一直告诉我权限被拒绝,因为它试图推送到最初克隆的repo。
细节:
我最初从https://github.com/taylonr/intro-to-protractor(即基于Pluralsight课程https://app.pluralsight.com/library/courses/protractor-introduction/table-of-contents)进行了克隆。
现在,我完成了课程,想将我的最终代码推送到我自己的git repo(我刚在github上创建)。
细节:
我最初从https://github.com/taylonr/intro-to-protractor(即基于Pluralsight课程https://app.pluralsight.com/library/courses/protractor-introduction/table-of-contents)进行了克隆。
现在,我完成了课程,想将我的最终代码推送到我自己的git repo(我刚在github上创建)。
https://github.com/robertmazzo/intro-to-protractor
当我使用以下git命令时: git remote add origin https://github.com/robertmazzo/intro-to-protractor.git 它告诉我“remote origin already exists”,我猜这没关系,因为我已经在github.com上创建了它。 然而,当我上传我的更改时,我收到一个异常。 git push origin master remote: Permission to taylonr/intro-to-protractor.git denied to robertmazzo. fatal: unable to access 'https://github.com/taylonr/intro-to-protractor.git/': The requested URL returned error: 403 所以我正在调查如何切换到我的新存储库,但这正是我的问题所在。我无法解决这个部分。