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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -