Closes #33438 Release Notes: - git: Use git cli to perform checkouts (to avoid a crash seen in libgit2)