Git - Push current Heroku repo to a remote github repo -
i have project set heroku git repository , after making new changes on new branch want push branch , diff between last heroku commit github repo.
how go doing can engage in work flow of pushing heroku , github when specified?
as general solution, add github additional repo project. @ point heroku origin
repo, let's github alternate
repo.
you create new repo in github account, let's say
git@github.com:adambronfin/myproject.git
then add working copy
git remote add alternate git@github.com:adambronfin/myproject.git
then, whenever want sync heroku github, do
git pull origin master git push alternate master
in example used master branch, can same other branches. per pushing diff latest commit, that's bit more specific , you'll have try yourself.
Comments
Post a Comment