https://github.com/axelkjonsberg/remove-git-branches
Shell function for removing unused Git branches
https://github.com/axelkjonsberg/remove-git-branches
bash bash-script powershell powershell-module powershell-script
Last synced: about 2 months ago
JSON representation
Shell function for removing unused Git branches
- Host: GitHub
- URL: https://github.com/axelkjonsberg/remove-git-branches
- Owner: axelkjonsberg
- License: mit
- Created: 2023-05-15T09:10:32.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-17T15:32:07.000Z (over 1 year ago)
- Last Synced: 2025-01-17T16:45:35.466Z (over 1 year ago)
- Topics: bash, bash-script, powershell, powershell-module, powershell-script
- Language: PowerShell
- Homepage:
- Size: 35.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RGB – Shell command for removing unused Git branches

A shortcut terminal command for removing all local Git branches which do not have a corresponding remote.
Fetches and prunes remote branches.
If a local branch does not have any existing remote, remove it!
The command will list all the branches it wants to delete and ask the user for confirmation.
The command will also ask the user if they would like to delete their current branch (if they are not already on 'main' or 'master').