Created
January 18, 2013 14:35
-
-
Save ncaq/4564942 to your computer and use it in GitHub Desktop.
ホームディレクトリ以下のgit管理ディレクトリを検索し,
全てにgit pullしていくだけのスクリプト. 検索したけど無かったから書いた.
コンフリクトとかローカルリポジトリとか知らない.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh -x | |
cd | |
dotgitdir=(`locate -r "\/\.git$" | xargs`) | |
for i in ${dotgitdir} | |
do | |
cd ${i} | |
cd .. | |
git pull | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment