Skip to content

Instantly share code, notes, and snippets.

View nickimola's full-sized avatar
💻
Coding some stuff...

Nick nickimola

💻
Coding some stuff...
View GitHub Profile
@nickimola
nickimola / delete-old-branches.sh
Created August 2, 2023 09:37
Simple bash script to list and delete all git branches older than a certain amount of days. Default to 365 days (1 year)
#!/bin/bash
DAYS=365
RED='\033[0;31m'
BLUE='\033[0;34m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
git checkout development
tarBranch=$(git branch -r --no-merged | grep -v master | grep -v developer | grep -v release | sed 's/origin\///')
for branch in $tarBranch
do
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Nicholas Lazzerini",
"label": "Web Frontend Developer | Fullstack Developer",
"picture": "https://avatars3.githubusercontent.com/u/9289704?s=460&v=4",
"email": "[email protected]",
"phone": "(39) 3331879000",