use_git: Initialise a git repository

Description Usage Arguments See Also Examples

View source: R/git.R

Description

use_git() initialises a Git repository and adds important files to .gitignore. If user consents, it also makes an initial commit.

Usage

1
use_git(message = "Initial commit")

Arguments

message

Message to use for first commit.

See Also

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

Examples

1
2
3
4
## Not run: 
use_git()

## End(Not run)

usethis documentation built on Feb. 10, 2021, 5:08 p.m.