Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4237824
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:49:28+00:00 2026-05-21T02:49:28+00:00

If there are tags in the remote repository, I’m usually getting them automatically when

  • 0

If there are tags in the remote repository, I’m usually getting them automatically when pulling. When I delete the created local tag (git tag -d <tag-name>) and pull, the deleted tag will be recreated. I can delete remote branches/tags (git push <remote-branch/tag-name>:<branch/tag-name>), but how can I detect that the local tag was created by fetching a remote tag?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T02:49:28+00:00Added an answer on May 21, 2026 at 2:49 am

    If you’re annoyed about these tags being recreated when you run git pull, you turn off the fetching of tags by default with the remote.<remote-name>.tagopt config setting. e.g. if the remote is origin, then you can do:

    git config remote.origin.tagopt --no-tags
    

    Update: to address your comment, the reason that I suggest this is that there’s not an obvious way to tell the difference between a tag that was created locally and one that was fetched from a remote. There’s also no reflog for tags. So, my suggestion is to suppress automatic fetching of tags – you can then fetch them yourself into a different namespace. For example, you could do:

    git fetch origin +refs/tags/*:refs/tags/origin/*
    

    … and perhaps create an alias for that. Then when you want to fetch tags, they’ll be named, for example, refs/tags/origin/tag1 instead of refs/tags/tag1.


    If you want this to happen automatically, you could change your .git/config to list multiple refspecs for fetching, e.g.:

     [remote "origin"]
          url = whoever@whereever:whatever.git
          fetch = +refs/heads/*:refs/remotes/origin/*
          fetch = +refs/tags/*:refs/tags/origin/*
    

    … which is suggested in Pro Git.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a repository with multiple tags. Each tag represents a version of the
Is there any way in VB.NET to remove all of the whitespaces between tags
I'm implementing a tagging system for a website. There are multiple tags per object
There are <meta> tags and other things you can place in the <head> of
Is there a way to coax either the h:outputLink or s:link tags into generating
In ASP.NET MVC is there an equivalent of the Html.ActionLink helper for Img tags?
Some texts on ASP.NET MVC state that there are no runat server tags, even
I have headers in <h1> through <h6> tags. Is there a way that I
When using the maven-release-plugin with Git, mvn release:prepare happily tags the release in the
I'm using git-svn to work with an SVN repository. My working copies have been

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.