# Dealing with conflicting tags - multiple remotes

1 messages from 2014-09-01 to 2014-09-01. Participants: Finucane, Stephen.
Thread: https://gitlist.dev/t/37470

## Finucane, Stephen, 2014-09-01 15:36

Subject: Dealing with conflicting tags - multiple remotes
Message-ID: <6A74A01C3512C646A9ED99AFA28AEB9813F6F138@IRSMSX108.ger.corp.intel.com>
URL: https://gitlist.dev/e/6A74A01C3512C646A9ED99AFA28AEB9813F6F138%40IRSMSX108.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.

```
