Get a situation report on your current git/GitHub status. Useful for diagnosing problems. git_vaccinate() adds some basic R- and RStudio-related entries to the user-level git ignore file.

git_sitrep()

Examples

git_sitrep()
#> Git config (global)
#> * Name: <unset>
#> * Email: <unset>
#> * Vaccinated: FALSE
#> usethis + git2r
#> * Default usethis protocol: 'ssh'
#> * git2r supports SSH: FALSE
#> * Credentials: '<usethis + git2r default behaviour>'
#> GitHub
#> * Personal access token: <unset>
#> Repo
#> * Path: '/Users/runner/runners/2.165.2/work/usethis/usethis/.git/worktrees/file63476fc2d0e'
#> * Local branch -> remote tracking branch: 'gh-pages' -> 'origin/gh-pages'
#> GitHub pull request readiness
#> * origin: r-lib/usethis, NA
#> * upstream: '<no such remote>'