git_remote_tree_url | R Documentation |
Determines the base Git tree URL to the current branch's upstream remote of repo
.
git_remote_tree_url(repo = ".", remote = NULL)
repo |
The path to the git repository. If the directory is not a
repository, parent directories are considered (see git_find). To disable
this search, provide the filepath protected with |
remote |
Name of the Git remote to determine the URL for. Defaults to |
This function is useful to assemble URLs to files and folders in your repo's Git forge (GitHub, GitLab, etc.).
If repo
is a Git repository, a character scalar. Otherwise, a character vector of length zero.
Other Git functions:
git_file_mod_time()
pal::git_remote_tree_url() |>
paste0("Rmd/pal.Rmd") |>
browseURL()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.