From: Luben Tuikov <ltuikov@yahoo.com>
To: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>,
Jakub Narebski <jnareb@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: master and origin
Date: Sun, 29 Oct 2006 15:19:44 -0800 (PST) [thread overview]
Message-ID: <118164.43697.qm@web31807.mail.mud.yahoo.com> (raw)
In-Reply-To: <4d8e3fd30610291329n7fe59873r87cbee9ccbd4b720@mail.gmail.com>
--- Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com> wrote:
>
> So in this case, there is a difference between doing my local
> development under master or myownlocalbranch. Right?
> I mean, if I do my own development under master and I pull, the master
> branch will include origin and my local changes. Corret?
> While if I work in my local branch the datas are not modified with a
> pull, because pull will update only the local copy of the remote
> branch. Correct?
Following GIT's working flow isn't that much different than
other SCM's workflow.
Leave master and origin branches alone. Imagine they are your
local copy of that imaginary "root" repo.
If you want to do development, create your own branch off of
master at some point, say HEAD, using git-branch, call it my-branch.
Then do your development in my-branch, occasionally pulling from
master, all the while you update master on a regular basis
from the remote repo. That pull into my-branch would schedule
the merge for you and if it cannot auto-merge, it will leave it
up to you do _resolve_ and then commit. Eventually
you get into the habit of following the same commands in the
same steps.
Note the key words here: pull, merge, commit. Pull and merge is
is done by git-pull, and if there's things to resolve you do that
manually, in most simplistic ways.
If you're coming from another SCM, picking up git is a snap.
I think the only "hurdle" coming from another SCM especially
centralized is the decentralized nature of git.
Reading git-fetch, git-pull documentation very carefully
should clear things up.
Luben
next prev parent reply other threads:[~2006-10-29 23:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-29 20:53 master and origin Paolo Ciarrocchi
2006-10-29 21:01 ` Jakub Narebski
[not found] ` <4d8e3fd30610291307v24f5aab8l3f447a1bfdf86ab4@mail.gmail.com>
2006-10-29 21:19 ` Jakub Narebski
2006-10-29 21:29 ` Paolo Ciarrocchi
2006-10-29 21:40 ` Jakub Narebski
2006-10-29 23:19 ` Luben Tuikov [this message]
2006-10-29 22:58 ` Luben Tuikov
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=118164.43697.qm@web31807.mail.mud.yahoo.com \
--to=ltuikov@yahoo.com \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
--cc=paolo.ciarrocchi@gmail.com \
/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.