• 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.

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