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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
The combination of
git grep -Fandgit log --oneline -Sis 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).
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:It was first introduced at Tue May 25 16:52:03 2010 +0200