先说结论:
进入 .git/refs/heads目录,会看到Feature文件夹,重命名为feature即可。
表现:
通过终端命令创建的分支
git checkout -b feature/name
使用git push后自动变成了Feature/name
并且有时候在本地创建feature/1234567_xxx分支后,使用
git push --set-upstream origin feature/1234567_xxx 链接远端分支时,会提示:
致命错误:feature/1234567_xxx 无法被解析为分支
fatal: the remote end hung up unexpectedly
git push -u origin feature/1234567_xxx 也无法解决
最后终于在stackOverFlow找到答案
git - Can't push to remote branch, cannot be resolved to branch - Stack Overflow
进入 .git/refs/heads目录,会看到Feature文件夹,重命名为feature即可。