2016-12-14 83 views

回答

1

添加一个new remote say, origin指向GitHub。然后将所有local/master提交到origin/master

$ git remote add origin <github/repo/url> # add new remote `origin` point to GitHub repo 
$ git checkout master 

$ git push origin master     # push all commits to github/master  
+0

感谢您的快速响应!我从heroku回购库中做到了这一点,所以我必须添加github remote,移除heroku remote,然后推送到github。 –

+0

是的。更新了我的答案。 –