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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html