Skip to content

Instantly share code, notes, and snippets.

View grishace's full-sized avatar
🏍️

Grigoriy Belenkiy grishace

🏍️
View GitHub Profile
@Szer
Szer / git-cleanup.ps1
Last active March 1, 2019 12:02
Deleting old remote branches which have been merged into master
function CleanupRepo {
param([string]$repo)
<#work directory should be repo root#>
cd $repo
git fetch "origin"
git reset --hard origin/master
"getting branch list..."