Sean Kelley
Sean Kelley

Reputation: 41

Add old commits to Github contribution history with Heroku Github Integration

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

Answers (1)

Sajib Khan
Sajib Khan

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

Related Questions