0
我们在团队中存在轻微的不匹配,并且我们意外地将我们的文件夹命名为相同的东西..但使用不同的大小写。所以我们现在有Feature/FeatureName
和feature/featureName
。我们想为我们的分行使用骆驼套,所以我们想要feature/featureName
。重命名/移动不同案例的分支文件夹
我试着做移动Feature
到oldFeatures
分支:
git mv Feature oldFeature
,但我得到了一个:
fatal: Invalid branch name: 'Feature'
问题是这样的:当Feature
尝试用户做:
git branch -b feature/newestFeature
git add .
git commit -m "Feature added"
git push -u origin feature/newestFeature
他会得到这个错误:
fatal: feature/newestFeature cannot be resolved to branch.
当同一用户分支到一个小写的分支(他没有创建)时,同样的问题发生在试图推回到同一分支时。
这里最好的选择是什么?我无法移动Feature
分支/文件夹,我无法使用feature
分支/文件夹,因为它显示“无法解析为分支”,依此类推。