AP05/fetch-all-git-branches
2025-04-06 14:41:47 +08:00

6 lines
140 B
Plaintext
Executable File

git branch -r | grep -v '\->' | while read remote;
do
git branch --track "${remote#origin/}" "$remote";
done
git fetch --all
git pull --all