我们几天前开始使用git。
一些开发人员在将他们的提交推送到我们的中央存储库之前没有拉出更改。现在我们有了一棵树,其中一些提交在主分支中有两个父级和/或两个子级。
我已经读了一些关于git的东西,但还没有找到关于这个条件是否正常的信息。
git log --oneline --graph --decorate --all
* d8b3992 (HEAD, origin/master, master) Merge branch 'master' of url_here
|\
| * 98720cb commit-message
| * 55b1ca7 commit-message
| * 0caca68 commit-message
| * 81e6b1b commit-message
| * 69adb17 commit-message
| * 1fcccfb commit-message
| * 50b847f commit-message
| * 8fa8d04 Merge branch 'master' of uri_here
| |\
| | * b2eca99 commit-message
| | |\
| | | * 2416fa7 commit-message
| | | |\
| | | | * cecf435 commit-message
| | | | * 7f233d7 commit-message
| | * | | 85a1aab commit-message
| | |/ /
| * | | 8297802 commit-message
| * | | f144ef9 commit-message
| * | | 4b3eb46 commit-message
| * | | a142b06 commit-message
| |/ /
* | | bba7871 commit-message
|/ /
* | f9479c8 commit-message
|/
* e443dcb commit-message
* 547c880 commit-message我不得不匿名提交的文本。
请告诉我在仓库的这种状态下是否隐藏了一些潜在的问题。
发布于 2012-01-17 19:30:09
看起来像一些开发人员在push之前先拉出。无论如何,如果没有快进合并,git通常不允许推送。
无论如何,你的情况是典型的git。
每个有2个(或更多)子对象的提交都是一个分支点。(假设两个开发人员同时开始开发两个不同的功能。)
并且每个具有2个(或更多)父对象的提交都是合并点。
https://stackoverflow.com/questions/8893674
复制相似问题