It works if you had the path, here current folder with .
git -v git version 2.39.5 git checkout my_branch . --no-overlay Updated 4 paths from fac8ddf