gaio
gaio

Reputation: 41

push heroku to github

i already have an app on Heroku that was put there by another developer. how do i now transfer that my new github repo?

i'm already set up the empty repo on github and assigned that to the app settings on Heroku. i just do not know how to initiate the git transfer.

i tried logging into the Heroku account from my local terminal, tho i was not able to get access--because i have two different Heroku accounts, and the email assigned to the one in this situation is not the same as what my Heroku tools is expecting on my local system.

how to do this?

Upvotes: 4

Views: 1473

Answers (1)

Малъ Скрылевъ
Малъ Скрылевъ

Reputation: 16507

Just clone the project locally and push to Github.

  1. Look at the app settings page on Heroku for the proper address:

    git clone [email protected]:you_project.git
    
  2. Add the origin, and just push the project into Github

    git add origin ...
    git push -u origin master
    

Upvotes: 2

Related Questions