I was trying to push a local branch to remote, but kept getting this error (simplified example):
git push -u origin Bugfix/Foobar fatal: Bugfix/Foobar cannot be resolved to branch
After googling a bit, came across this StackOverflow question, and that got me thinking about case sensitivity, so I changed the "B" to "b":
git push -u origin bugfix/Foobar
And that worked. Yes, I was pushing to a *nix based server from my Windows machine, though perhaps the message given by git could've been more clear. Other people had already pushed branches with the lower case "bugfix" before, so my guess is that git on the remote server couldn't create the folder using "Bugfix"...
No comments:
Post a Comment