What do you want to save?
Add Code snippet
New code examples
-
-
Shell/Bash 2021-09-15 17:35:02
get all branches git
# track all remote branches: git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done # update all local copies of remote branches git fetch --all # update all local tracking branc... Add solution -
Shell/Bash 2021-08-30 17:49:03
git fetch all remote branch
# track all remote branches: git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done # update all local copies of remote branches git fetch --all # update all local tracking branc... Add solution
Best helpers
Deka87
+5
Hojo
+5
Ruban Savvy
+5
JC78
+5
Rob Chicken
+5
John Helmeke
+5
Clinton Judy
+5
Oleksandr R.
+5
Dan Kegel
+5
Marek
+5
Bell App Lab
+5
DocRock1007
+5
The Cat
+5
Alaa Ali
+5