Skip to content

git_remote_branch

Community Action Reference: Inspected directly from Fastlane core ruby gem definitions.

Supported Platforms: ios, android, mac

Returns the name of the current git remote default branch

Details

If no default remote branch could be found, this action will return nil. This is a wrapper for the internal action Actions.git_default_remote_branch_name

Parameters & Options

Total options available: 1

Key Type Env Variable Default Required Description
remote_name String FL_REMOTE_REPOSITORY_NAME - No The remote repository to check

Examples

git_remote_branch # Query git for first available remote name
git_remote_branch(remote_name:"upstream") # Provide a remote name

Source & Upstream