git_commit: Commit Staged Changes

View source: R/git_hooks.R

git_commitR Documentation

Commit Staged Changes

Description

Record changes to the repository with a commit message.

Usage

git_commit(message, all = FALSE)

Arguments

message

Commit message (required)

all

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

Value

Invisibly returns TRUE on success

Examples


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



framework documentation built on Feb. 18, 2026, 1:07 a.m.