Sets up Git
configurations
including
user name,
email,
editor,
files to ignore,
and
commit message.
term_git_config( name = "User Name", email = "email@email.com", editor = "vim", ignore = c("*~", ".*.swp", ".DS_Store", ".~lock.*"), msg = paste0("Subject line (try to keep under 50 characters)", "\n\n", "Multi-line description of commit,", "\n", "feel free to be detailed.", "\n\n", "[Ticket: X]"), global = TRUE, overwrite = FALSE )
name | Character string. |
---|---|
Character string. |
|
editor | Character string. |
ignore | Character vector. Patterns of file names and paths to ignore. |
msg | Character string. |
global | Logical.
If |
overwrite | Logical.
Overwrite existing |
if (FALSE) { term_git_config( name = "User Name", email = "email@email.com", global = TRUE ) }