Skip to content

Instantly share code, notes, and snippets.

View turker0's full-sized avatar
🔥

oguz turker turker0

🔥
View GitHub Profile
@turker0
turker0 / bash
Last active November 19, 2021 08:18
Update Master Branch & Delete Closed Local Branches
git checkout master
git remote update origin -p
git pull origin master
git fetch -p && for branch in $(git branch -vv | grep ': gone]' | awk '{print $1}'); do git branch -D $branch; done