-1
A
回答
1
典型的合併工作流程涉及調用git_merge
合併到工作目錄和索引,檢查衝突,然後調用git_commit
多的父母(頭和上游提交你歸併)。
模仿--squash只是簡單地忽略提交(或提交作爲唯一的父母)。在任何一種情況下,您都希望使用git_repository_state_cleanup
明確清理合並狀態。
相關問題
- 1. 不是git merge --squash真的git rebase -squash?
- 2. git merge squash非連續提交
- 3. git merge(w squash)的任何gui?
- 4. 「git log -1 fullpath/myfile」with libgit2
- 5. 使用libgit2做Git Pull
- 6. Git的問題 - rebase/squash
- 7. Git擴展:Squash提交?
- 8. 用libgit2實現'git pull'?
- 9. 有什麼區別git fetch B + git merge B vs git merge origin/B
- 10. 我如何使用`git的合併--squash`
- 11. git rebase interactive:squash merge commit在一起
- 12. git merge,push,pull confusion
- 13. Git合併--squash和--no-commit之間的區別
- 14. git merge master vs git merge master coins有什麼區別
- 15. Git可以合併--squash保留提交註釋嗎?
- 16. 在libgit2中執行git描述
- 17. 「git checkout main_branch; git merge topic_branch」的別名?
- 18. git merge或rebase for stale branch?
- 19. git-svn merge 2 svn分支
- 20. 使用git merge的問題
- 21. git merge origin branchname做什麼?
- 22. git merge操縱歷史
- 23. git merge squash - 衝突解決當我想要的是我從分支的變化我從
- 24. Libgit2合併MERGE_HEAD仍然存在於git的文件夾
- 25. Git diff with textutil
- 26. Yeoman with git
- 27. Git with SCM Manager
- 28. Git with curlftpfs
- 29. OpenStack:Gerit錯誤與git rebase和merge
- 30. git pull --rebase,git rebase和git merge之間的區別