git_protocol {usethis}R Documentation

Produce or register git protocol

Description

Git operations that address a remote use a so-called "transport protocol". usethis supports SSH and HTTPS. The protocol affects two things:

options(usethis.protocol = "ssh")
## or
options(usethis.protocol = "https")

Usage

git_protocol()

use_git_protocol(protocol)

Arguments

protocol

Optional. Should be "ssh" or "https", if specified. Defaults to the option usethis.protocol and, if unset, to an interactive choice or, in non-interactive sessions, "ssh". NA triggers the interactive menu.

Value

"ssh" or "https"

Examples

## Not run: 
## consult the option and maybe get an interactive menu
git_protocol()

## explicitly set the protocol
use_git_protocol("ssh")
use_git_protocol("https")

## End(Not run)

[Package usethis version 1.5.1 Index]