0

I want to search for a specific commit in all the branches I have in my repo. Thing is i have probably deleted or renamed the brach but I have the commit number. Can some one write me a git line that i can use to search for a specific commit in all the branches? Thanks

1
  • 4
    What information are you looking for? What branch the commit is in (git branch --contains <commit>)? The contents of the commit (git show <commit>)? Commented Nov 23, 2015 at 9:36

1 Answer 1

4

If by commit number you mean the sha number then a simple git show <sha_number> will show you the commit content.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.