$ git clone git@workspace.bitbucket.org:workspace/repo.git
I haven't tried with GitHub as I only have one account I use there.