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 6748085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:31:25+00:00 2026-05-26T12:31:25+00:00

In the latest version of git you can use the flag –branch (or -b)

  • 0

In the latest version of git you can use the flag –branch (or -b) to “Show the branch and tracking info even in short-format.”

When (which version) did git introduce this option? I know that at least in 1.7.0.4 it isn’t an option.

  • 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-26T12:31:25+00:00Added an answer on May 26, 2026 at 12:31 pm

    The combination of git grep -F and git log --oneline -S is generally a powerful way to dig anything out of a Git repo:
    (manojlds proposes in his answer a one-liner which should work most of the time if you search for the right comment like the OP’s question does. Go upvote it).

    VonC@NETVONC ~/Prog/git/git (master)
    $ git grep -F 'Show the branch'
    Documentation/git-status.txt:   Show the branch and tracking info even in short-format.
    
    VonC@NETVONC ~/Prog/git/git (master)
    $ git log --oneline --follow -S'Show the branch' -- Documentation/git-status.txt
    46077fa Documentation+t5708: document and test status -s -b
    
    VonC@NETVONC ~/Prog/git/git (master)
    $ git tag --contains 46077fa
    ko-maint
    ko-master
    ko-next
    ko-pu
    v1.7.2
    

    So 1.7.2

    (I always found this thread a neat illustration of git digging)


    Note: It has been introduced 233 commits after 1.7.1 according to git describe:

    VonC@NETVONC ~/Prog/git/git (master)
    $ git describe 46077fa
    v1.7.1-233-g46077fa
    

    It was first introduced at Tue May 25 16:52:03 2010 +0200

    VonC@NETVONC ~/Prog/git/git (master)
    $ git show 46077fa
    
    commit 46077fa5d477a3e96e0bb96042a2a9fdc9c818cb
    Author: Michael J Gruber <git@drmicha.warpmail.net>
    Date:   Tue May 25 16:52:03 2010 +0200
    
        Documentation+t5708: document and test status -s -b
    
        Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
        Signed-off-by: Junio C Hamano <gitster@pobox.com>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know how to get the latest source from GIT which is version 7.1.2
I've just upgraded PHP to the latest version. When I get back to Git,
I use MinGW latest version to compile the following code. I get the folowing
So Hibernate Supports the latest Version of Firebird, which is really great. But... I
I'm using Windows XP, TortoiseGit (latest version) and Cygwin. I have git.exe installed and
On git-filter-branch , it is said: To set a commit (which typically is at
I'm using the latest version of the jquery plugin DataTables and I tried to
I installed the latest version of Wordpress and added the WP-Syntax plugin (and also
I have installed the latest version of netbeans and its working.. I have opened
Using the latest version of Resharper (4.5.x) with VS2008. Every now and then (pretty

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.