使用 Xcode 的源代码管理时,按commit # Files 和 Push后出现以下错误。
\n\n工作副本 \xe2\x80\x9cProject\xe2\x80\x9d 未能提交文件。
\n\n\n\n\n致命:无法在合并期间进行部分提交。
\n
我使用的是 Xcode 9+。我查看了此处,但没有找到任何可以解决 Xcode 源代码管理问题的内容。
\n\n谢谢您的帮助。
\n您将不得不使用您的
terminal
来解决此问题。Xcode
(从 Xcode 9 开始)不支持 git 中的许多功能,例如git stash
。
选项 1 - 暂存更改并使用Xcode
按照这个SO答案,尝试暂存所有本地更改并使用 Xcode 重复您的步骤
terminal
cd /path/to/project
git add .
选项 2 - 使用暂存和提交terminal
如果Option 1
没有解决问题,您可以自行完成此terminal
任务
terminal
cd /path/to/project
git stash save name-this-stash
git reset --hard HEAD~30
git pull origin branch-name
git stash apply
git status
git add file1 file2
git commit -m "commit-message"
git push origin branch-name
希望能帮助到你!
归档时间: |
|
查看次数: |
5917 次 |
最近记录: |