mirror of
https://github.com/theniceboy/.config.git
synced 2025-12-26 22:54:59 +08:00
3 lines
223 B
Bash
Executable file
3 lines
223 B
Bash
Executable file
#!/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
|