new scripts

This commit is contained in:
David Chen 2020-03-26 12:02:15 -07:00
parent e16cede414
commit 34e9a1427e
3 changed files with 227 additions and 0 deletions

3
bin/git-pull-all Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
remote=origin ; for brname in `git branch -r | grep $remote | grep -v master | grep -v HEAD | awk '{gsub(/^[^\/]+\//,"",$1); print $1}'`; do git branch --track $brname $remote/$brname || true; done 2>/dev/null