switch git repo to a temporary one