git_init: Initialize git

Description Usage Arguments Details See Also

View source: R/git_xyz.R

Description

Create an empty Git repository or reinitialize an existing one

Usage

1
2
3
git_init(projname = ".", add = ".", ignore = c(".DS_Store", ".RData",
  ".Rhistory", ".Rapp.history", ".Rproj.user"), commit = TRUE,
  msg = "first commit")

Arguments

projname

path to a package source, by default "." (current directory)

add

what files to include, by default "." (all)

ignore

patterns to be written to .gitignore

commit

logical; should changes be commited?

msg

the message to be included with the commit

Details

An empty Git repository is created, files added, and a .gitignore file generated. Optionally the changes are commited and stored with a message.

See Also

Other git functions: git_commit, git_push, git_remote


AkselA/R-projector documentation built on June 19, 2020, 4:24 p.m.