Last active
August 29, 2015 14:04
-
-
Save koyudoon/f22c8d92ea32fba104e8 to your computer and use it in GitHub Desktop.
今まで適当に git clone していたのを ghq で管理するために、対象プロジェクトを点呼する。
This file contains 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
find $HOME -name '.git' -print0 | while read -r -d '' f; do | |
() { | |
cd ${f%/*} | |
local remote="$(git remote)" | |
[ -z "$remote" ] && continue | |
pwd | |
git remote -v | |
echo | |
} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ディレクトリ名とそのリモートリポジトリを列挙。
ex.