save git to another directory to avoid unstable object issue