Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

May 162012

How to push to origin but a different branch using Git


Assume you normally push your local changes to the remote's master branch, but what if you want to push the changes into another branch (e.g. testing)?

You can easily do this by using the command:

# git push origin master:testing

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>