Git

git_commit

Commit Staged Changes

Record changes to the repository with a commit message.


Usage

git_commit(message, all = FALSE)

Arguments

Argument Description
message

Commit message (required)

all

Logical; if TRUE, automatically stage modified/deleted files (default: FALSE)

Returns

Invisibly returns TRUE on success

Examples

git_commit("Fix bug in data loading")
git_commit("Update README", all = TRUE)  # Stage and commit

Source: R/git_hooks.R