On Wednesday, July 31, 2013 6:53:58 PM UTC-4, python.b...@gmail.com wrote:

> I synced to a repo tree which is branch "jb"... I have a local commit on 
> this branch which I am trying to push to a remote branch "jb_mr2" and 
> running into following error..is there a git push command which I can use 
> to push this local commit to "jb_mr2"
>

Is there a specific reason why you do not fetch that remote jb_mr2 branch 
(if it exists), check that out, cherry pick the commit and push the jb_mr2 
branch back?

git fetch <remote> jb_mr2
git checkout -b jb_mr2 <remote>/jb_mr2
git cherry-pick ...
git push <remote> jb_mr2 


> qca-bld-03{73}> git push ssh://
> company.com:29418/platform/vendor/com-proprietary/ship/ftm72bc75e409e50dcad29bd790b4b6478dc6668f12:refs/for/jb_mr2
> Counting objects: 9, done.
> Delta compression using up to 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    
> To ssh://company.com:29418/platform/vendor/com-proprietary/ship/ftm
>  ! [remote rejected] 72bc75e409e50dcad29bd790b4b6478dc6668f12 -> 
> refs/for/jb_mr2 (branch jb_mr2 not found)
> error: failed to push some refs to 'ssh://
> company.com:29418/platform/vendor/com-proprietary/ship/ftm'
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to