Takes a lot of inspiration from the usethis use_git() function, except it only adds Git and nothing more (doesn't commit, doesn't restart RStudio automatically). Must run this function inside the project you created from setup_project()

setup_with_git()

Value

Adds Git and .gitignore file to the project.

See also

setup_project() for starting the project.