How do I force fetching of tags if I have the –no-tags option set

Whenever I run git fetch it fetches all the tags from origin. In a project with lots of tags, this can get quite bothersome. So I ran git config remote.origin.tagopt --no-tags so fetching will no-longer fetch tags.

However, there are some times when I do want to fetch tags, or a single tag. Does anyone know how to do this? (besides removing that configuration, and running git fetch --no-tags every time)

  • Is there a git hook that runs on git reset?
  • How do I change the default location for Git Bash on Windows?
  • Window Git $ git config --global http.proxy warning: http.proxy has multiple values
  • Github: Clean up fork after pull request
  • Git pulls files in .gitignore
  • Capistrano 3 copy strategy equivalent
  • Thanks!

  • History or log of commands executed in Git
  • Git default merge commit message not including conflicts
  • Finding diff between two git repositories
  • Internal NuGet Package Management In Large Solutions
  • Gradle: Passing variable from one task to another
  • Split a git repository to work on two projects at the same time
  • One Solution collect form web for “How do I force fetching of tags if I have the –no-tags option set”

    To fetch a single tag, you can use git fetch <remote-name> tag <tag-name>.

    Git Baby is a git and github fan, let's start git clone.