注意:我不确定是否已经提出这个问题,因为我找不到符合我的上下文(或I)的任何问题我无法理解现有问题的背景“)Git:无法理解主分支上发生分支(主题)提交/合并的原因
我很喜欢Git这些天。特别是,话题分支。我正在研究一个小型代码共享应用程序。我有(主),“认证”,“书签”,“评论”,“鼻子”等(本地)分支...
我的(打算)工作流程如下所示:创建主题分支==>处理主题分支==>将文件提交到分支==>将主题分支更改合并到“主”分支。 (后来删除主题分支)
我试着做同样的几个分支。它运行良好。但后来当我检查git图时,即使我遵循相同的工作流程,所有机会都发生在“主”上。没有树线分歧和聚合!它从那时起显示了一条带有多个提交的单线。我不知道为什么?我的印象是,我用头指针拧了一些东西?
举一个实际的看法,这是我的git图:http://github.com/none-da/zeshare/network
下面是我使用的命令:
>> git branch authentication_feature
>> git checkout authentication_feature
>> # I work with all the files here in "authentication_feature" branch
>> git commit -m "Authentication_feature is up" # commiting to the branch
>> git branch # just to confirm, which branch I am working on
>> git checkout master # trying to shift to master branch
>> git merge --no-commit authentication_feature # I merge in two steps. This is step 1
>> git status;git add; git commit -m "Authentication_feature" merged to "master". # This is the step 2
>> git log --graph --pretty=oneline # confirming the graph
>> git push origin master # pushing to the remote server(github)
您的链接不适合我。你是如何创建分支的?我想我们需要更多的信息,比如你使用的命令。 – 2010-02-04 02:44:39
恐怕没有足够的答案细节(链接超时),请确保遵循任何教程/手册并查看是否得到相同的结果。选中您进行更改的分支等等。 – stefanB 2010-02-04 02:52:34