* branch rebase and push
@ 2006-12-19 3:39 SungHyun Nam
2006-12-19 9:57 ` Jakub Narebski
0 siblings, 1 reply; 4+ messages in thread
From: SungHyun Nam @ 2006-12-19 3:39 UTC (permalink / raw)
To: git
Hello,
Can I push a branch after rebase?
I got a error message:
error: remote 'refs/heads/br' is not a strict subset of local ref
'refs/heads/br'. maybe you are not up-to-date and need to pull first?
It worked fine if I did:
$ git checkout -b br
$ git pull . master
$ git checkout master
$ git pull
$ git push
But I got above error message if I did:
$ git checkout br
$ git rebase master
$ git checkout master
$ git pull
$ git push
Thanks.
namsh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: branch rebase and push
2006-12-19 3:39 branch rebase and push SungHyun Nam
@ 2006-12-19 9:57 ` Jakub Narebski
[not found] ` <4587BD31.9030804@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Jakub Narebski @ 2006-12-19 9:57 UTC (permalink / raw)
To: git
SungHyun Nam wrote:
> Can I push a branch after rebase?
> I got a error message:
> error: remote 'refs/heads/br' is not a strict subset of local ref
> 'refs/heads/br'. maybe you are not up-to-date and need to pull first?
>
> It worked fine if I did:
> $ git checkout -b br
> $ git pull . master
> $ git checkout master
> $ git pull
> $ git push
>
> But I got above error message if I did:
> $ git checkout br
> $ git rebase master
> $ git checkout master
> $ git pull
> $ git push
The problem you have is with _push_, not branch, I think.
Does repository you pull from has rebased branch 'br'? If yes, is it
pulled with + in pull/fetch line? Perhaps (but read documentation first,
please) "git push --force" is what you want, provided that other side
doesn't forbid non fast-forward pushes.
Bu you usually don't rebase published branch (don't change history
of published branch). Equivalently, you don't publish rebased branch
until it is ready (or merged in ;-).
--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-12-19 12:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-19 3:39 branch rebase and push SungHyun Nam
2006-12-19 9:57 ` Jakub Narebski
[not found] ` <4587BD31.9030804@gmail.com>
2006-12-19 11:58 ` Jakub Narebski
2006-12-19 12:13 ` Johannes Schindelin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).