From 3ea3c32d0693294da3a9c38bab85f503cc8f3472 Mon Sep 17 00:00:00 2001 From: Chris Glavan Date: Thu, 24 Aug 2023 09:05:40 -0400 Subject: [PATCH] ~Added script to update local repository branches with remote repository branches --- UpdateBranches.bat | 1 + 1 file changed, 1 insertion(+) create mode 100644 UpdateBranches.bat diff --git a/UpdateBranches.bat b/UpdateBranches.bat new file mode 100644 index 00000000..471a6999 --- /dev/null +++ b/UpdateBranches.bat @@ -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;" \ No newline at end of file