clean_git: Clean the git repository

View source: R/clean_git.R

clean_gitR Documentation

Clean the git repository

Description

  • update local branches that are behind their counterpart on origin.

  • list local branches that have diverged from their counterpart the origin.

  • list local branches without counterpart on origin that have diverged from the main branch.

  • remove local branches without counterpart on origin and fully merged into the main branch.

  • remove local copies of origin branches deleted at the origin.

Usage

clean_git(repo = ".", verbose = TRUE)

Arguments

repo

The path to the git repository. If the directory is not a repository, parent directories are considered (see git_find). To disable this search, provide the filepath protected with I(). When using this parameter, always explicitly call by name (i.e. ⁠repo = ⁠) because future versions of gert may have additional parameters.

verbose

display some progress info while downloading

See Also

Other git: create_draft_pr(), is_repository(), is_workdir_clean(), new_branch(), set_tag()


inbo/checklist documentation built on June 15, 2025, 12:54 p.m.