I have two branches: feature/x "feature/y"
I can checkout the first with no problems, but the one in quotes is giving me problems, with the error 'feature/y' did not match any files known to git.
I have two branches: feature/x "feature/y"
I can checkout the first with no problems, but the one in quotes is giving me problems, with the error 'feature/y' did not match any files known to git.
You need to escape quotes so either of these should work
git checkout \"branch-name\"
git checkout '"branch-name"'
Another way to overcome this when there are single quotes used internally, you can surround the whole branch name in double quotes:
git checkout "branch-name-'with-single'-quotes-inside"
This is what the tool "GIT Extensions" does