using checkout instead of build immediately in git history