Git - advanced syntax
Published on: 2021-04-08
Push local branch to different remote branch ?
This trick can be seemed as:
$ git push origin local_branchname:remote_branchname
- origin -> name of remote
You make some changes in your local branch which you wanna push to another branch in your GitHub repo. In this case is special syntax delimitr :
. You separate your local branch and remote branch with :
.