How do I search by commit hash

When using git bisect for example, we always have git hash as result. It would be nice to be able to filter or search commit by their hash instead of their commit message.

5 answers

1 accepted

This is in the log view rather than the search view because it's about jumping to the right commit. Use the Jump to: option in the top right of the log view and select "Commit...", then type in a full or partial SHA.

Ok thanks. Not very discoverable though...

I spent 5 minutes wondering how to do this and then ended up here. It might help if that dropdown option said "Commit hash" instead of just "Commit".

Is there a keyboard shortcut to bring up the jump to commit dialog?

I agreed with aymeric. You should duplicate this option in the Search menu (CTRL+3).

Worst location ever.

this is not obvious at all. i raged for 30 minutes until i found it


Pretty dumb. The point of a hash is that it's quick and easy to find something by unique ID. Forcing user to scroll through ALL POSSIBLE HASHES EVER is a lazy UI. Furthermore, this IS now available in the search view.

屏幕快照 2016-08-15 下午3.55.52.png

What is the log view? How do I get to it in the web interface`?

I believe the posters that are referring to "search view" and "log view" are talking about available options in the SourceTree tool provided by Atlassian; not the Bitbucket Web UI.  As best as I can tell, at least in Bitbucket Server Web UI... there doesn't appear to be any way to search by commit hash, other than to scroll to it... which isn't very helpful.

We have a lot of tags, which means that the "Jump to:" dropdown can take a few seconds to appear, when all I ever want is to search by hash/tag/branch/bookmark. These things are listed in the left hand pane of the log view, so listing them here in the dropdown is redundant. It'd be great if this could be improved. Adding a keyboard shortcut for searching by commit identifier seems to be the easiest quick fix.

It might help if that dropdown option said "Commit hash" instead of just "Commit".

Well, currently in the latest version this option does nothing... cool.

You have to wait. It's slow and does not show loading indicator.

  1. Go to "Search view" (cmd-3)
  2. change "Search" select menu to "Commit SHA"
  3. type the commit hash into the search bar


Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

708 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot