Given a directory full of working copies, like ~/projects
, this script helps sort them into subdirectories based on org name. It inspects Git remote names and URLs to do so.
Currently doesn't handle forks very well, because git
doesn't know what a fork is.
NOTE TO SELF: Hub is helpful. Use hub clone
and hub fork --remote-name=origin
rather than clicking the big green "Fork" button, as this sets up origin
/upstream
remotes properly.