gh_tree_remote: Find the GitHub remote associated with a path

View source: R/git.R

gh_tree_remoteR Documentation

Find the GitHub remote associated with a path

Description

This is handy helper if you want to make gh requests related to the current project.

Usage

gh_tree_remote(path = ".")

Arguments

path

Path that is contained within a git repo.

Value

If the repo has a github remote, a list containing username and repo. Otherwise, an error.

Examples


gh_tree_remote()


gh documentation built on March 7, 2023, 5:33 p.m.