From: Matthieu Moy <Matthieu.Moy@imag.fr>
To: Barry Roberts <blr@robertsr.us>
Cc: git@vger.kernel.org
Subject: Re: Noob question on using branches
Date: Tue, 06 May 2008 18:00:15 +0200 [thread overview]
Message-ID: <vpqiqxrctio.fsf@bauges.imag.fr> (raw)
In-Reply-To: <48207DA4.80502@robertsr.us> (Barry Roberts's message of "Tue\, 06 May 2008 09\:47\:48 -0600")
Barry Roberts <blr@robertsr.us> writes:
> I have a branch in my git repository that is a "released" branch. It
> only gets defect fixes as they are needed to patch our production
> servers.
>
> I want to get all those defect fixes back into the master, but I don't
> want changes from the master getting into the production branch, so I
> don't think I want to do:
> git checkout master
> git merge production
Why wouldn't you?
The "git merge production" will take all the changes in production and
put them in the current branch. You'll get a new revision that
contains both the stuff in master and the one in production. But
what's important is that the reference "master" is updated to that new
revision, but "production" stays where it is.
Just try it, then run "gitk --all" to see if the result is what you
wanted. If not, "git reset --hard HEAD^" will move back "master" to
where it used to be (read about "git reset" before you run it).
--
Matthieu
next prev parent reply other threads:[~2008-05-06 16:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-06 15:47 Noob question on using branches Barry Roberts
2008-05-06 16:00 ` Matthieu Moy [this message]
2008-05-06 16:15 ` Barry Roberts
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=vpqiqxrctio.fsf@bauges.imag.fr \
--to=matthieu.moy@imag.fr \
--cc=blr@robertsr.us \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.