SHOW GIT BRANCHES

statementsupportedContainer services & dev tooling

docs.snowflake.com ↗

Lists the branches in the specified Snowflake Git repository clone.

Syntax

supportedpartialnot supportednot scored

SHOW GIT BRANCHES [ LIKE '<pattern>' ] IN [ GIT REPOSITORY ] <repository_name>

Parameters

NameRequiredDescription
LIKE 'pattern'Optionally filters the command output by object name. The filter uses case-insensitive pattern matching, with support for SQL wildcard characters (% and _). For example, the following patterns return the same results: ... LIKE '%testing%' ... ... LIKE '%TESTING%' ... Default: No value (no filtering is applied to the output).
IN [ GIT REPOSITORY ] repository_nameSpecifies the Git repository clone containing the branches to show.

Usage notes

Output

The command output provides Git branches properties in the following columns: Column | Description name | Name of the branch. path | Path of the branch. checkouts | Currently shows no data. commit_hash | Commit hash of the branch.

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes READ | Git repository | Git repository clone containing the branches to show Operating on an object in a schema requires at least one privilege on the parent database and at least one privilege on the parent schema. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

See also

Referenced by