Skip to contents

Get branch from a GitHub URL if non-default branch specified there

Usage

get_branch_from_url(repourl)

Arguments

repourl

Potentially with "/tree/branch_name/sub-directory" appended

Value

Branch as single string.

See also

Other github: dl_gh_repo(), get_subdir_from_url(), post_to_issue(), url_is_r_pkg()