# install
brew install ghq
# set ghq root dir
git config --global ghq.root '~/dev/ghq'
clone one by one
# SSH
ghq get [email protected]:hoge/hoge.git
# or you can get SSH with -p option
ghq get -p https://github.com/hoge/hoge.git
# HTTPS
ghq get https://github.com/hoge/hoge.git
clone all repos under a certain user or organiztion
ACCOUNT=yokawasa-sandbox
for i in $(gh repo list ${ACCOUNT} --no-archived --json url --jq '.[].url' ); do echo $i; ghq get -p $i ;done
ghq list
# full path
ghq list -p