~Added script to update local repository branches with remote repository branches

This commit is contained in:
Chris Glavan 2023-08-24 09:05:40 -04:00
parent 25d500c44e
commit 3ea3c32d06

1
UpdateBranches.bat Normal file
View File

@ -0,0 +1 @@
start "" "%PROGRAMFILES%\Git\bin\sh.exe" -c "git fetch -p ; git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs --no-run-if-empty git branch -d;"