Façon facile de tirer le dernier de tous les sous-modules git

Mots clés : gitgit-submodulesgit

meilleur 5 Réponses Façon facile de tirer le dernier de tous les sous-modules git

vote vote

92

git submodule update --init --recursive 
git submodule update --recursive --remote 
git submodule update --recursive 
git pull --recurse-submodules 
vote vote

82

git pull --recurse-submodules --jobs=10 
vote vote

70

git submodule update --init --recursive 
git - the base command to perform any git command     submodule - Inspects, updates and manages submodules.         update - Update the registered submodules to match what the superproject         expects by cloning missing submodules and updating the working tree of the         submodules. The "updating" can be done in several ways depending on command         line options and the value of submodule.<name>.update configuration variable.             --init without the explicit init step if you do not intend to customize             any submodule locations.             --recursive is specified, this command will recurse into the registered             submodules, and update any nested submodules within. 
git submodule update --recursive 
vote vote

66

#!/bin/bash # Exists to fully update the git repo that you are sitting in...  git pull && git submodule init && git submodule update && git submodule status 
vote vote

51

git submodule foreach git pull origin master 
git submodule foreach /path/to/some/cool/script.sh 

Questions similaires