git-clean
Synopsis
Section titled “Synopsis”git-clean [-h] [-f]Description
Section titled “Description”Fetches and prunes the remote, fast-forwards the current branch, and deletes local branches whose tracking remote has been deleted. Switches to main/master automatically if the current branch is orphaned.
Arguments
Section titled “Arguments”-h, --help |
Show help message |
-f, --force |
Force-delete unmerged orphaned branches (git branch -D) |
Exit Status
Section titled “Exit Status”0 |
Cleanup complete |
1 |
Argument parsing failed |
Example
Section titled “Example”git-clean --forcegit-cleanDependencies: git
Classification: network