gh_tree_remote function

Find the GitHub remote associated with a path

Find the GitHub remote associated with a path

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

gh_tree_remote(path = ".")

Arguments

  • path: Path that is contained within a git repo.

Returns

If the repo has a github remote, a list containing username

and repo. Otherwise, an error.

Examples

gh_tree_remote()
  • Maintainer: Gábor Csárdi
  • License: MIT + file LICENSE
  • Last published: 2024-03-28