https://gist.github.com/CristinaSolana/1885435
git remote add upstream git://github.com/ros-visualization/qt_gui_core.git
git fetch upstream
git pull upstream kinetic-devel
git push
Now the github page say "This branch is even with ros-visualization:kinetic-devel.", at least until more commits are made, then the fetch pull push needs to be repeated.
Does the remote add need to be done for every new clone of the same repo?
git checkout -b unknown_plugin_perspective
Switched to a new branch 'unknown_plugin_perspective'
git push
fatal: The current branch unknown_plugin_perspective has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin unknown_plugin_perspective
git push --set-upstream origin unknown_plugin_perspective
Now the branch appears under branches pulldown on github page.
Checkout an upstream branch