R: Find the GitHub remote associated with a path

gh_tree_remote {gh} | R 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

    ## Not run:
    gh_tree_remote()

    ## End(Not run)

[Package gh version 1.0.1 Index]