switch to git repo and initialize cache