Learn R Programming

git2r (version 0.35.0)

remote_ls: List references in a remote repository

Description

Displays references available in a remote repository along with the associated commit IDs. Akin to the 'git ls-remote' command.

Usage

remote_ls(name = NULL, repo = NULL, credentials = NULL)

Value

Character vector for each reference with the associated commit IDs.

Arguments

name

Character vector with the "remote" repository URL to query or the name of the remote if a repo argument is given.

repo

an optional repository object used if remotes are specified by name.

credentials

The credentials for remote repository access. Default is NULL. To use and query an ssh-agent for the ssh key credentials, let this parameter be NULL (the default).

Examples

Run this code
if (FALSE) {
remote_ls("https://github.com/ropensci/git2r")
}

Run the code above in your browser using DataLab