Reputation: 41
I am considering adding the Github integration to an existing Heroku app and I am wondering if I move the commits from the heroku branch to master branch, will they appear in my contribution history on my Github profile?
Upvotes: 2
Views: 242
Reputation: 24156
Add a new remote say, origin
point to GitHub
. Then push all local/master
commits to 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
Upvotes: 1