Re: Git branching & pulling
- From
Junio C Hamano <junkio@cox.net>
- Date
- May 19, 2007, 06:05 UTC
- Message-ID
- <7vzm41xsa2.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <7v8xblz71o.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
Show 19 quoted lines
> "Wink Saville" <wink@saville.com> writes: > >> Could someone give me some insight or point me at a url or doc >> that could shed some light on what is happening and why git-pull >> doesn't work on kvm.git. > > DEFAULT BEHAVIOUR section of > > http://www.kernel.org/pub/software/scm/git/docs/git-pull.html > > would be the place to start. Recent git-clone (post 1.5.0, I think) > prepares the following configuration variables for you by default: > > remote.origin.url > remote.origin.fetch > branch.master.remote > branch.master.merge > > but repositories created by older git-clone didn't.
/me says "oops I did not finish the sentence".
but repositories created by older git-clone didn't get these configuration variables set. If you set them appropriately, taking example of your other repository (and probably you would also want to remove .git/remotes/origin while you are at it), you can omit saying which branch to pull from where.
I personally never understood why people would just want to say "git pull" without saying anything else, but what described in the DEFAULT BEHAVIOUR section is how it works.