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

  • SEARCH
  • Home
  • 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 9231409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:03:37+00:00 2026-06-18T06:03:37+00:00

Git tag commands provide information about all the tags on that repository. For example,

  • 0

Git tag commands provide information about all the tags on that repository. For example, when I run git tag on my repository, it displays

tag1.0
tag1.1
tag1.2

Let’s say my repository has two branches. How would I know which branch the tag1.0 tag was related to?

Yes, I know that if I do git show tag1.0, I can tell whether this is the 1st branch or 2nd based on the previous changes. However, I’d like to know if there a more direct method exists. If it exists, what command would I need to use?

  • 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-06-18T06:03:38+00:00Added an answer on June 18, 2026 at 6:03 am

    You can do:

    git branch --contains tag1.0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my repository, I have created tags using the following commands. git tag v1.0.0
so the git tag command lists the current git tags tag1 tag2 git tag
I have a git repository set up that looks something like this: PROD /
I have a git command that I run to display my logs. It mostly
I have a git repository with two branches; one for code that's used for
I'm writing a semi-automated deploy script that allows users to tag the repository at
Is there command which can show me list of all available commands in GIT?
How can I delete a Git tag that has already been pushed?
For example, I'd like to do the following... $ git tag -a v1.0 [-d
How do I add the output of # Get tag distance $(TAGDIST) git describe

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.