assignSSH: Assign SSH Key to Local Git Repository

View source: R/assignSSH.R

assignSSHR Documentation

Assign SSH Key to Local Git Repository

Description

Assign an SSH key to a local Git repository to bypass user/password prompts during 'git push. See Generating an SSH Key for further information on how to generate an SSH key and add it to your GitHub account.

Usage

assignSSH(user, repo)

Arguments

user

GitHub user name as character. If not specified, information on GitHub user and repository name is taken from the current working environment.

repo

GitHub repository name as character, see 'user'.

See Also

https://docs.github.com/articles/generating-an-ssh-key/.

Examples

## Not run: 
## for an arbitrary git repository
assignSSH()

## for this very git repository
assignSSH(user = "fdetsch", repo = "Orcs")

## End(Not run)


Orcs documentation built on Jan. 6, 2023, 5:14 p.m.