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
Shaples
+5
Tranquilled
+5
Kozuch
+5
Big D Rock
+5
The 313137
+5
Toby Stewart
+5
Moez
+5
Stelle
+5
Kathrin
+5
Moradnejad
+5
Tony_Henrich
+5