Re: Unhelpful "branch.master.remote = <nickname>" advice?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Nov 11, 2009, at 2:22 PM, Jan Nieuwenhuizen wrote:

Hi,

git pull -r*) URL says:

   If you often merge with the same branch, you may want to
   configure the following variables in your configuration
   file:

       branch.master.remote = <nickname>
       branch.master.merge = <remote-ref>
       remote.<nickname>.url = <url>
       remote.<nickname>.fetch = <refspec>

These are meant to be used with git-config(1):
git config branch.master.remote <nickname>

Or if you want to manually edit the config file, add this:

[branch "master"]
    remote = <nickname>

etc.


and after cut-and-pasting that into .git/config, replacing
<foo> with values, I get

   $ git pull -r http://github.com/../../master
   fatal: bad config file line 17 in .git/config

where line 17 is [without any indentation]

   branch.master.remote = eddy

This is with git version version 1.6.3.3

Greetings,
Jan.  -- who just finds out the uninstall target is missing?!?
	 See attached.

Next time please send patches inline, it's easier to review them that way.


*) I've been wondering why GIT lacks a "update", ie
  pull-without-merge command.  You almost never want
  to git pull /without/ -r?

As 'pull == fetch + merge' (pull -r == fetch + rebase), pull without merge would be fetch.

tom

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]