Re: DWIM "git checkout frotz" to "git checkout -b frotz origin/frotz"
- From
Miles Bader <miles@gnu.org>
- Date
- Jun 8, 2010, 07:52 UTC
- Message-ID
- <AANLkTiljpUDEYKar1ni-lvTMvGEKvM5o7cb95qn798Ok@mail.gmail.com>
- In-Reply-To
- <20100608072958.GA24302@localhost>
On Tue, Jun 8, 2010 at 4:29 PM, Clemens Buchacher <drizzd@aon.at> wrote:
> Eventually, if they are lucky, they will learn in #git that they > were supposed to "git merge <remote>/X."
They don't have to do that, they just have to do "git pull". This concept -- that to get the latest changes, one pulls -- is something people learn very early.
So, in fact it seems quite natural -- you switch to a local branch with "git co branch", and then if git tells you it's not up-to-date, you "git pull". All nice and smooth and simple and standard. The DWIM simply makes the first time less clumsy, and while everybody benefits, beginners probably benefit a bit more.
-Miles
-- Do not taunt Happy Fun Ball.