LinuxCommandLibrary

git-browse

Open repository in web browser

TLDR

Open repository in browser

$ git browse
copy
Open specific commit
$ git browse [commit]
copy
Open specific branch
$ git browse --branch [name]
copy
Open issues page
$ git browse --issues
copy
Print URL without opening
$ git browse -u
copy

SYNOPSIS

git browse [options] [commit]

DESCRIPTION

git browse is a git-extras command that automatically detects your repository's remote URL and opens it in your default web browser. It intelligently handles GitHub, GitLab, and Bitbucket repositories, constructing the appropriate web URLs.
The command can navigate directly to specific commits, branches, or repository sections like the issues page. This eliminates the need to manually type or copy repository URLs when you want to view code on the hosting platform.
The --url option allows scripting and automation by printing the URL instead of opening it, useful for integration with other tools or workflows.

PARAMETERS

--branch name

Open specific branch.
--issues
Open issues page.
-u, --url
Print URL only.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community