What did you do before the bug happened? (Steps to reproduce your issue) On GitHub Enterprise server I have created a branch named: features/team1/feature./1.0/main in my repo. I tried to fetch the branch and switch to it. What did you expect to happen? (Expected behavior) I expected for branch to be switched to:features/team1/feature./1.0/main What happened instead? (Actual behavior) I got an error: fatal: cannot lock ref 'refs/heads/features/team1/feature./1.0/main': unable to create directory for .git/refs/heads/features/team1/feature./1.0/main What's different between what you expected and what actually happened? The branch did no switch. Anything else you want to add: