Skip to content

Instantly share code, notes, and snippets.

@ncaq
Created January 18, 2013 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ncaq/4564942 to your computer and use it in GitHub Desktop.
Save ncaq/4564942 to your computer and use it in GitHub Desktop.
ホームディレクトリ以下のgit管理ディレクトリを検索し, 全てにgit pullしていくだけのスクリプト. 検索したけど無かったから書いた. コンフリクトとかローカルリポジトリとか知らない.
#!/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