Re: git pull behavior changed?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Aghiles
Date: Wednesday, April 21, 2010 - 3:41 pm

> Otherwise, --set-upstream may help. But neither will help untill you

Matthieu, I spend my days reading the git manual and also the source
code, which is not normal IMHO. I always look for examples but in the
case of 'git branch' there is not many that are really useful!

I suggest to add this as an example since it is probably the most common
case (one would expect that a new branch simply mimics the characteristics
of the starting branch, no ?)

  git branch --track small_fixes origin

And it does what I want.

Again, the behavior changed: just upgraded to 1.7.0.3, before then I was
doing branches like this:

  git checkout -b small_fixes
  git pull

From my point of view, that was neat!

The --track and <start-point>=origin seemed to be implied. I find that this
is a better better default (OR 'git pull' was defaulting to 'git pull
origin HEAD').

As of now, 'git branch x' seem to be of little use without more configuration.

  -- aghiles
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git pull behavior changed?, Aghiles, (Wed Apr 21, 2:13 pm)
Re: git pull behavior changed?, Sverre Rabbelier, (Wed Apr 21, 2:22 pm)
Re: git pull behavior changed?, Aghiles, (Wed Apr 21, 2:34 pm)
Re: git pull behavior changed?, Aghiles, (Wed Apr 21, 2:55 pm)
Re: git pull behavior changed?, Sverre Rabbelier, (Wed Apr 21, 2:59 pm)
Re: git pull behavior changed?, Matthieu Moy, (Wed Apr 21, 2:59 pm)
Re: git pull behavior changed?, Aghiles, (Wed Apr 21, 3:04 pm)
Re: git pull behavior changed?, Matthieu Moy, (Wed Apr 21, 3:23 pm)
Re: git pull behavior changed?, Aghiles, (Wed Apr 21, 3:41 pm)
Re: git pull behavior changed?, Randal L. Schwartz, (Wed Apr 21, 4:27 pm)
Re: git pull behavior changed?, Aghiles, (Wed Apr 21, 4:57 pm)
Re: git pull behavior changed?, Jeff King, (Wed Apr 21, 5:01 pm)
Re: git pull behavior changed?, Aghiles, (Wed Apr 21, 5:13 pm)
Re: git pull behavior changed?, Jeff King, (Wed Apr 21, 5:41 pm)
Re: git pull behavior changed?, Aghiles, (Wed Apr 21, 6:27 pm)
Re: git pull behavior changed?, Jeff King, (Wed Apr 21, 7:10 pm)
Re: git pull behavior changed?, Petr Baudis, (Thu Apr 22, 1:10 am)
Re: git pull behavior changed?, Junio C Hamano, (Thu Apr 22, 1:16 am)
Creating tracked branches, Petr Baudis, (Thu Apr 22, 4:49 am)
Re: Creating tracked branches, Andreas Schwab, (Thu Apr 22, 6:47 am)
Re: Creating tracked branches, Petr Baudis, (Thu Apr 22, 7:17 am)
Re: git pull behavior changed?, Aghiles, (Thu Apr 22, 2:13 pm)