branche - Comment récupérer toutes les branches Git

Mots clés : gitbranchgit-branchgit

meilleur 5 Réponses branche - Comment récupérer toutes les branches Git

vote vote

92

git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done git fetch --all git pull --all 
git fetch --all 
git pull --all 
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done 
for remote in `git branch -r`; do git branch --track ${remote#origin/} $remote; done 
vote vote

89

git branch -r 
git checkout -b LocalName origin/remotebranchname 
vote vote

80

for b in `git branch -r | grep -v -- '->'`; do git branch --track ${b##origin/} $b; done 
vote vote

61

git fetch origin 
git branch -a 
git diff origin/branch-name  
git merge origin/branch-name 
git checkout -b some-branch origin/branch-name 
vote vote

57

$ git remote update $ git pull --all 
for remote in `git branch -r `; do git branch --track $remote; done 

Questions similaires