Git development
 help / color / mirror / Atom feed
From: Nicolas Morey-Chaisemartin <devel@morey-chaisemartin.com>
To: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Rebasing local patches
Date: Sat, 07 Mar 2009 10:01:22 +0100	[thread overview]
Message-ID: <49B237E2.3080606@morey-chaisemartin.com> (raw)

Hello everyone, 

I have a few questions about the workflow we sue at work.
On one of our project, we depend on an external source which uses git.
On our side of the project, we create some patches (this part is not the problem), but only some of them are intended to be pushed (ie pulled by) the external source.
So basically, we have a set of patches on local branch that we rebase every so and then against master to keep our version up-to-date with the external one.

Is this the right way to do it?

Then, internally we have a centralized repository and many personal ones. When the need to go to the next version, one of the developper rebases the company patches branch afaisnt master and push it into the centralized repo.
What is the best way for the other developpers to get up-to-date with the rebased branch? 
git pull --rebase seems to me like a good way to keep local modifications.
If all our patches were already pushed on the centralized repo, we tend top use git reset --hard origin/our_patches

Final question:
I noticed that when the branch was rebased on the centralized and repo and origin/our_patches is up-to-date in mine. 
If I checkout another branch and then ckecout our_branches, I got a message telling my our_patches and the one from the server have diverged (or you are two commits behind...).
How can you get this info directly without leaving/rejoining your branch?


Regards

Nicolas

             reply	other threads:[~2009-03-07  9:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-07  9:01 Nicolas Morey-Chaisemartin [this message]
2009-03-07 11:41 ` Rebasing local patches Johannes Schindelin
2009-03-13  7:39   ` Nicolas Morey-Chaisemartin
2009-03-18 15:48     ` Johannes Schindelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49B237E2.3080606@morey-chaisemartin.com \
    --to=devel@morey-chaisemartin.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox