Git - Checkout a remote tag when two remotes have the same tag name
问题 I had hoped this would work: git checkout remote/tag_name but it doesn\'t. This does: git checkout tags/tag_name but I\'m doing something weird where I have a lot of remotes, and I\'m worried about what happens if two remotes have the same tag. Is there a way to specify the remote when checking out the tag? 回答1: Executive summary: what you want to achieve is possible, but first you must invent remote tags. You do this with a series of refspecs, one for each remote. The rest of this is about