ghq - Remote repo management tool
In all of my 3 Macs, I store all of my code within
~/Code to make it persistent and easy to use across the machines. I use
ghq to manage the inner structure.
ghq, simply run it anywhere in the terminal with your desired Github repository
user/repo or full URL:
$ ghq get narze/garden-astro # or $ ghq get https://github.com/narze/garden-astro
I make a command line alias and add
-l parameter (
look) to change the path after cloning, and
-p to clone with SSH url for using with private Github repositories.
alias gq='ghq get -l -p'
I can just type
gq narze/garden-astro in a new terminal session and start coding right away.