Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

bb browse

bb browse [OPTIONS] [NUMBER|PATH|SHA]

Open the repository on bitbucket.org. As in gh browse, the argument is a PR if it is a number, a commit if it is 7 to 40 lowercase hex characters, and otherwise a file or directory path relative to the repository root (PATH:LINE or PATH:START-END selects lines).

FlagMeaning
-b, --branch <BRANCH>Branch to browse (default with PATH: current branch, else the main branch)
-c, --commit[=<SHA>]Browse at a commit: --commit=SHA, or the last commit when no SHA is given
--blameOpen the blame view for a file
-s, --settingsOpen the repository settings
-a, --actionsOpen the repository’s Pipelines (the gh Actions analog)
-w, --wikiOpen the repository wiki
-n, --no-browserPrint the URL instead of opening a browser
bb browse src/main.rs:10-20 -n
bb browse 42

Differences from gh

  • Gap: -p/--projects and -r/--releases have no Bitbucket equivalent.
  • Gap: --commit and --branch can’t be combined (in gh, --commit wins).