2016-09-17 74 views
0

我正在使用「git push heroku master」向Heroku推送一個簡單的應用程序,然後我還想使用「git push origin master」將代碼推送到github。不過,我有這樣一個問題:Heroku拒絕Github Repo的權限

remote: Permission to heroku/node-js-getting-started.git denied to github. fatal: unable to access ' https://github.com/heroku/node-js-getting-started/ ': The requested URL returned error: 403

所以,我的問題是,如果我第一次推應用的Heroku,然後我沒有權限推到github上?謝謝!

回答

1

看着這個步步:

  1. 您克隆回購(屬於的Heroku)

此設置了一個origin遠程你可以從拉。

  1. 你推到heroku上

這涉及設置heroku遠程它可以推&拉。

爲了推入git,您需要分叉repo或者創建一個新的repo並指向您的origin

這些步驟如下:

  1. 建立在github上一個新的回購,複製URL
  2. git remote set-url origin <paste the url>
  3. git push origin master

403意味着權限被拒絕。