So I am writing a script that initializes a git repository in ~/.cfi, adds a remote, and pulls it down from the server.
~/.cfi
Creating the directory, and init
git itself has parameters --git-dir for the .git directory and --work-tree for your working copy:
git
--git-dir
--work-tree
git --git-dir /where/ever remote add ...