git_remote_connect: Connect to Existing 'GitHub' Repository

View source: R/github.R

git_remote_connectR Documentation

Connect to Existing 'GitHub' Repository

Description

Given that a 'GitHub' user is configured, with the appropriate permissions, this function connects to an existing repository.

Usage

git_remote_connect(repo, remote_repo)

Arguments

repo

a path to an existing repository, or a git_repository object as returned by git_open, git_init or git_clone.

remote_repo

Character, indicating the name of a repository on your account.

Value

Invisibly returns a list with the following elements:

  • repo_url: Character, URL of the connected repository

  • repo_exists: Logical

  • prior_commits: Logical

See Also

gh_whoami git_fetch, git_remote

Examples

## Not run: 
git_remote_connect()

## End(Not run)

cjvanlissa/worcs documentation built on Jan. 2, 2025, 3:26 a.m.