
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
Git utility to clean up remote branches
npm install -g git-sweep
Type: String
Path to target git repository.
Type: String
Default: origin
Target remote to clean up.
Type: String
Default: origin/master
Branches to be ignored. Must be specified in <remote>/<branch> format. Use comma to delimit multiple branches.
This option will be merged with the configuration in .gitsweepignore.
Type: Boolean
Default: false
Run git-sweep without actually deleting any branch. Useful for verifying the list of branches that will be deleted.
Type: String
Default: 1m
Minimum age for a branch to be considered for deletion. Format 1y2m3d means "older than 1 year 2 months and 3 days".
Type: Boolean
origin/mastergit-sweep /path/to/repo
git-sweep /path/to/repo --age 1y2m3d
origin/master and origin/devgit-sweep /path/to/repo --ignore origin/master,origin/dev
git-sweep /path/to/repo --remote fork
git-sweep /path/to/repo --preview
A .gitsweepignore can be added to configure the ignore option.
When used together with --ignore, their entries will be merged.
git-sweep currently supports ssh-agent only.
path to be mandatoryssh-agentFAQs
Clean up remote branches for git repo
We found that git-sweep demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.