This content originally appeared on DEV Community and was authored by David Garcia
1️⃣ Save the following script in:
📂 .config/fish/functions/git-delete-branches.fish
2️⃣ Execute the command:
git-delete-branches "<regex>"
🔹 Finds and deletes local/remote branches matching a regex.
🔹 Asks for confirmation to avoid surprises.
🔹 Saves time and keeps your repo clean.
📌 Full code and explanation 👉
This content originally appeared on DEV Community and was authored by David Garcia

David Garcia | Sciencx (2025-02-19T06:09:39+00:00) 🧹 Remove them with a single Fish Shell command:. Retrieved from https://www.scien.cx/2025/02/19/%f0%9f%a7%b9-remove-them-with-a-single-fish-shell-command/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.