2

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?

1 Answer 1

1

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    
Sign up to request clarification or add additional context in comments.

2 Comments

Thanks for the quick response! I did this from a heroku repo so I had to add the github remote, remove the heroku remote, then push to github.
Yes. Updated my answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.