2
我正在考慮將Github集成添加到現有的Heroku應用中,並且我想知道我是否在move the commits from the heroku branch to master branch之後,它們是否會出現在我的Github配置文件的貢獻記錄中?用Heroku Github集成將舊的提交添加到Github貢獻記錄
我正在考慮將Github集成添加到現有的Heroku應用中,並且我想知道我是否在move the commits from the heroku branch to master branch之後,它們是否會出現在我的Github配置文件的貢獻記錄中?用Heroku Github集成將舊的提交添加到Github貢獻記錄
添加一個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
感謝您的快速響應!我從heroku回購庫中做到了這一點,所以我必須添加github remote,移除heroku remote,然後推送到github。 –
是的。更新了我的答案。 –