fatal: ‘XXX’ could be both a local file and a tracking branch. please use — (and optionally –no-guess) to disambiguate

This is definitely an edge case but easily solved. This action calls git checkout XXX, but because you have a branch, and a folder called XXX it ends up getting confused and asks you to clarify.

In an attempt to solve this I’ve used git switch to specify that you want to switch to the branch specifically.