skip to content
ccdocs

cc github

Open a project's GitHub page in the browser.

Usage

cc github [name] [flags]

Arguments

ArgumentDescription
nameProject name (tab-completable). If omitted, uses the active project.

Flags

FlagDescription
-p, --pathUse the current working directory instead of the active project

Examples

cc github              # open active project's GitHub, on the active branch
cc github acme         # open acme's GitHub page (prompts for environment)
cc github -p           # open GitHub for the repo at current path

How It Works

  • With a project name: looks up the environment's stored GitHub URL and branch, opens github.com/org/repo/tree/branch
  • With -p or no active project: reads the git remote from the current directory and opens the repo page

On this page