git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git fetch documentation

From
NRNicolas Richard <theonewiththeevillook@yahoo.fr>
Date
Jun 1, 2013, 11:04 UTC
Message-ID
<87sj12rt13.fsf@yahoo.fr>
Hello,

Regarding the git-fetch man page (IIUC, in pull-fetch-param.txt), in particular the <refspec> explanation, I feel that two facts are missing:

- A '*' can be used both in src and dest, and it matches any name,
  including subdirectories, but not partial names (i.e. refs/heads/foo*
  is invalid).
- multiple fetch lines can be given in .git/config, each of them will be
  obeyed

These are probably obvious for most users, but I think documenting them would be good for newcomers. (I tried to come up with a patch but I can't find a precise yet concise way to explain the role of '*' in english.)

-- 
Nico.
Next: Ramkumar Ramachandra
Message 1 of 2 in “git fetch documentation”
  1. Nicolas RichardJun 1, 2013
  2. Ramkumar RamachandraJun 1, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.