framework docs
Git

git_pull()

Pull from Remote

Fetch and integrate changes from the remote repository.

Usage

git_pull(remote = "origin", branch = NULL)

Arguments

remote
Remote name (default: "origin")
branch
Branch name (default: current branch)

Value

Invisibly returns TRUE on success

Examples

if (FALSE) {
git_pull()
git_pull(remote = "origin", branch = "main")
}