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

Dealing with conflicting tags - multiple remotes

From
FSFinucane, Stephen <stephen.finucane@intel.com>
Date
Sep 1, 2014, 15:36 UTC
Message-ID
<6A74A01C3512C646A9ED99AFA28AEB9813F6F138@IRSMSX108.ger.corp.intel.com>
Hi,
Take a repo with multiple remotes. These remotes each have a specific branch/tag naming convention, and there are tags in each that conflict with those in other remotes. In order to avoid conflicts, it seems possible to add something like this to the '.git/config' file:
    [remote "origin"]
        url = git@github.com:schacon/simplegit-progit.git
        fetch = +refs/heads/*:refs/remotes/origin/*
        fetch = +refs/tags/*:refs/tags/origin/*
This is discussed here:
    http://stackoverflow.com/a/5496610
    http://git-scm.com/book/en/Git-Internals-The-Refspec
However, when you try to pull in these tags, you'll see two different sets of tags - one with the prefix ('origin' above) and one without. Why is this? Is this a bug, or by design?
If this is not the recommended approach to avoid conflicts, could someone suggest a better one?

Regards, Stephen Finucane

PS: system info -
 * Fedora 20 64-bit (3.15.7-200.fc20.x86_64)
 * git version 1.9.3

-------------------------------------------------------------- Intel Shannon Limited Registered in Ireland Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263 Business address: Dromore House, East Park, Shannon, Co. Clare

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
Message 1 of 1 in “Dealing with conflicting tags - multiple remotes”
  1. Finucane, StephenSep 1, 2014

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.