git checkout | fatal: ‘origin/main’ is not a commit and a branch ‘main’ cannot be created from it

We have an Azure DevOps pipeline, and in one of the steps (see below), we trigger the git checkout command. We began encountering the following fatal error. Reason and Fix: 🙂
Published on:
Learn more