powered by
Check whether the values user.name and user.email exist exist for the current repository. Uses git_signature_default.
user.name
user.email
git_signature_default
has_git_user(repo = ".")
Logical, indicating whether 'Git' global configuration settings could be retrieved, and contained the values user.name and user.email.
The path to the git repository.
testdir <- file.path(tempdir(), "test_git_user") dir.create(testdir) gert::git_init(testdir) has_git_user(testdir) unlink(testdir, recursive = TRUE)
Run the code above in your browser using DataLab