How to Search for Commits in Bitbucket Server and Data Center

  • projects and repositories in your Bitbucket that a certain user contributed to (filter by author)
  • commits that were made long ago to a repository with high activity (filter by time)
  • the commits of a user made to a repository or project (filter by author and project/repo)
  • all the commits made to a project (filter by project).

Sourcetree search opportunities

Use Awesome Graphs to search commits in Bitbucket

Export commit data to CSV

Search for commits in Bitbucket via REST API

https://example.com/rest/api/1.0/projects/exampleprojectkey/repos/example-repository-slug/commits
https://example.com/rest/api/1.0/projects/exampleprojectkey/repos/example-repository-slug/commits?merges=exclude&since=ea3eea9dcbd&until=f4240bf022a
{
"values": [
{
"id": "f4240bf022a69815241a883c03645444b58ac553",
"displayId": "f4240bf022a",
"author": {
"name": "Max Desiatov",
"emailAddress": "max@desiatov.com"
},
"authorTimestamp": 1557113671000,
"committer": {
"name": "Tomer Doron",
"emailAddress": "tomer@apple.com"
},
"committerTimestamp": 1557113671000,
"message": "Add internal section link to README.md (#71)",
"parents": [
{
"id": "ea3eea9dcbd46887d846696261f54b3d2f74fecd",
"displayId": "ea3eea9dcbd"
}
]
},
https://example.com/rest/awesome-graphs-api/latest/projects/exampleprojectkey/repos/example-repository-slug/commits
{
"values": [
{
"user": {
"emailAddress": "yorlov@stiltsoft.com",
"displayName": "Administrator",
"name": "admin"
},
"author": {
"displayName": "admin",
"emailAddress": "yorlov@stiltsoft.com"
},
"authorTimestamp": "2020-03-05T22:58:18Z",
"linesOfCode": {
"added": 1,
"deleted": 0
},
"parents": [],
"repository": {
"slug": "Commit Hook",
"name": "commit-hook",
"project": {
"key": "TESTCONTAINERS",
"name": "Testcontainers",
"type": "NORMAL"
}
},
"id": "9f2e24a147bb8f5a5a3d10b692703cc5784df8b5"
},
],
}

Find out what works best for you

  • Sourcetree as a free application that is suitable for searching among a small number of repositories.
  • Awesome Graphs for Bitbucket add-on as a tool with wide search opportunities and various analytical features.
  • Bitbucket REST API as a more advanced and technically demanding option.

--

--

Responsible for content and events at https://stiltsoft.com/ A banal line, but I love reading, learning, and traveling.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Irina Sanikovich

Irina Sanikovich

14 Followers

Responsible for content and events at https://stiltsoft.com/ A banal line, but I love reading, learning, and traveling.