Clones a gitRepoAndRef into a newly created directory, creates
remote-tracking branches for each branch in the cloned gitRepoAndRef (visible
using git branch -r), and creates and checks out an initial branch that is
forked from the cloned gitRepoAndRef's currently active branch. PWD is set to
the directory being checked out.