android - git push command for pushing a local commit to a different remote branch -


i synced repo tree branch "jb"... have local commit on branch trying push remote branch "jb_mr2" , running following error..is there git push command can use push local commit "jb_mr2"

terminal3{73}> git push ssh://company.com:29418/platform/vendor/com-proprietary/ship/ftm 72bc75e409e50dcad29bd790b4b6478dc6668f12:refs/for/jb_mr2 counting objects: 9, done. delta compression using 32 threads. compressing objects: 100% (6/6), done. writing objects: 100% (6/6), 7.01 kib, done. total 6 (delta 3), reused 0 (delta 0) remote: resolving deltas: 100% (3/3) remote: processing changes: refs: 1, done    ssh://company.com:29418/platform/vendor/com-proprietary/ship/ftm  ! [remote rejected] 72bc75e409e50dcad29bd790b4b6478dc6668f12 -> refs/for/jb_mr2 (branch jb_mr2 not found) error: failed push refs 'ssh://company.com:29418/platform/vendor/com-proprietary/ship/ftm' 

i able play bit more , have better solution. if read correctly, remote branch "jb_mr2" exists. local branch commits run this:

git push ssh://company.com:29418/platform/vendor/com-proprietary/ship/ftm 72bc75e409e50dcad29bd790b4b6478dc6668f12:jb_mr2 

if remote not exist:

git push ssh://company.com:29418/platform/vendor/com-proprietary/ship/ftm 72bc75e409e50dcad29bd790b4b6478dc6668f12:/refs/heads/jb_mr2 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -