Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
解决 git 存储库的注释分支中的合并冲突的最佳方法是什么?
我遇到了一个场景,当我尝试从远程存储库中获取 notes 分支的内容时,我收到一个错误,说 non-fast-forward,fetch denied。建议?
我找到了一种在 git 的 notes 分支中进行合并的方法。以下是我正在使用的方法。如果我是对的/错的,请告诉我。
git checkout refs/notes/commits git fetch origin refs/notes/commits:refs/notes/origin/commits git merge FETCH_HEAD git update-ref refs/notes/commits
请让我知道这是否是正确的方法???