Remove .git directory in git checkout gems