What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-01-22 11:55:16
force pull git
git fetch --all git reset --hard origin/master Add solution -
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
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5