git - Push commit to 2 different remote branches? -


i have 2 remote branches, branch , branch b.

consider case checkout branch a, made commit , pushed. now, want push same commit branch b. these 2 branches pretty different cannot user rebase, can i? because if git rebase rebase changes 1 branch another, need 1 commit. how can that?

ps. in stupid way: checkout branch b, cherry pick last commit branch a, , push b (remote). way don't need switch branch b.

that git cherry-pick for. since branches different each other , don't want merge or rebase 1 commit, option.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -