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 widget could not be displayed.

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.

This widget could not be displayed.

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.

This widget could not be displayed.

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

This widget could not be displayed.

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

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

This widget could not be displayed.
  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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Friday in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

169 views 9 2
Join discussion

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