From: Dmitry Potapov <dpotapov@gmail.com>
To: "Christian C. Schouten" <info@zark3.net>
Cc: git@vger.kernel.org
Subject: Re: Beginner's question on how to use git for multiple parallel versions
Date: Mon, 4 Jan 2010 17:35:23 +0300 [thread overview]
Message-ID: <37fcd2781001040635t12183269rd24f34bf05a5d788@mail.gmail.com> (raw)
In-Reply-To: <F8CC469C9CCA415696101414EA997C0.MAI@sohosted19.com>
Hi,
On Mon, Jan 4, 2010 at 2:29 PM, Christian C. Schouten <info@zark3.net> wrote:
>
> I’ve got a project that I want to do version management on with git but being a beginner in
> cvs/svn/dvcs etc. terminology I don’t know yet how to set it up.
> My project needs to exist as several parallel copies, i.e. there is a “main version” in
> which I do my development but it needs to end up being available as a couple of different
> configurations.
One way to achieve that is to use branches. You create a mainline
branch that will contain
what is common for all versions, and then create a few specific
branches from it. Each branch
will contain their own files, as well as modifications to some common
files if it is necessary.
Changes that a common to all branches should be committed to the
mainline, which is merged
to each version specific branch.
Git allows to quickly switch between branches, so you stay in all
worktree all the time.
Moreover, if you made modifications to some file on branchA but then
realized that it should
be commit to another branch, you can switch to another branch as usual
as long as the
modified files are the same on both branches. (If it is not the case,
you can use git stash).
Dmitry
prev parent reply other threads:[~2010-01-04 14:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-04 11:29 Beginner's question on how to use git for multiple parallel versions Christian C. Schouten
2010-01-04 13:29 ` Bill Lear
2010-01-04 13:35 ` Christian C. Schouten
2010-01-04 15:44 ` Bill Lear
2010-01-04 14:35 ` Dmitry Potapov [this message]
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=37fcd2781001040635t12183269rd24f34bf05a5d788@mail.gmail.com \
--to=dpotapov@gmail.com \
--cc=git@vger.kernel.org \
--cc=info@zark3.net \
/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;
as well as URLs for NNTP newsgroup(s).