Skip to contents

Check if Git is installed and if user.name and user.email are configured globally.

Usage

tar_git_ok(verbose = TRUE)

Arguments

verbose

Whether to print messages to the console.

Value

Logical of length 1, whether Git is installed and configured correctly.

Details

You can install Git from https://git-scm.com/downloads/ and configure your identity using the instructions at https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup. You may find it convenient to run gert::git_config_global() with name equal to user.name and user.email.

Examples

tar_git_ok()
#>  Git binary: /usr/bin/git
#>  Git config global user name: Jerry Johnson
#>  Git config global user email: [email protected]
#> [1] TRUE