use_git_config {usethis}R Documentation

Configure Git

Description

Sets Git options, for either the user or the project ("global" or "local", in Git terminology).

Usage

use_git_config(scope = c("user", "project"), ...)

Arguments

scope

Edit globally for the current user, or locally for the current project

...

Name-value pairs.

Value

Invisibly, the previous values of the modified components.

See Also

Other git helpers: use_git_hook(), use_git_ignore(), use_git()

Examples

## Not run: 
# set the user's global user.name and user.email
use_git_config(user.name = "Jane", user.email = "jane@example.org")

# set the user.name and user.email locally, i.e. for current repo/project
use_git_config(
  scope = "project",
  user.name = "Jane",
  user.email = "jane@example.org"
)

## End(Not run)

[Package usethis version 1.6.3 Index]