git_remote_connect | R Documentation |
Given that a 'GitHub' user is configured, with the appropriate permissions, this function connects to an existing repository.
git_remote_connect(repo, remote_repo)
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. |
Invisibly returns a list with the following elements:
repo_url: Character, URL of the connected repository
repo_exists: Logical
prior_commits: Logical
gh_whoami
git_fetch
, git_remote
## Not run:
git_remote_connect()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.