git_commit()
Commit Staged Changes
Record changes to the repository with a commit message.
Usage
git_commit(message, all = FALSE)
Arguments
| Name | Description |
|---|---|
| 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
}