티스토리

개발, 검색, 함수
검색하기내 프로필
tips & tricks

git submodule foreach

manywaypark 2013. 11. 21. 23:29

git에서 모든 submodule에대해 무언가 작업을하고 싶다면 foreach를 활용하면 간단히 해결된다.

모든 서브모듈들을 pull하고 싶다면 아래와 같이 하면 된다.

git submodule foreach git pull origin master


ref: http://stackoverflow.com/questions/1030169/easy-way-pull-latest-of-all-submodules


happy hackin'