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

git fetch refs and tags

From
JWJan Weitzel <j.weitzel@phytec.de>
Date
Apr 23, 2013, 10:53 UTC
Message-ID
<1366714421.2899.10.camel@lws-weitzel>

Hello, I have the following problem: I have 2 bare git repositories one has several branches and tags. If I try this in the second repository: git fetch -f ../main.git refs/heads/master:refs/heads/master I'm getting also tags from other branches, if I have an old object from one of the other branches. I would expect to have only tags pointing to master ref. (Although the man pages points to the behaviour regarding dangling objects). Is there a way to avoid this? I only find --no-tags which results in having no tags at all. Or need I git purge to remove the old objects first? My goal is to fetch only specific branches and the related tags.

Jan
Next: Johan Herland
Message 1 of 7 in “git fetch refs and tags”
  1. Jan WeitzelApr 23, 2013
  2. Johan HerlandApr 23, 2013
  3. Jan WeitzelApr 23, 2013
  4. Johan HerlandApr 23, 2013
  5. Junio C HamanoApr 23, 2013
  6. Johan HerlandApr 23, 2013
  7. Jan WeitzelApr 24, 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.