Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Github-无法在日志文件中看到合并_Git_Github_Git Branch_Git Merge_Git Log - Fatal编程技术网

Github-无法在日志文件中看到合并

Github-无法在日志文件中看到合并,git,github,git-branch,git-merge,git-log,Git,Github,Git Branch,Git Merge,Git Log,在我的回购协议中,我有主机和新分支。我将文件添加到新文件中,提交并将其推送到远程repo。然后,我通过以下步骤将新版本合并到主版本中: git checkout master (up-to-date) git merge new_branch (no conflicts) 我看到快进合并和所有新文件。没有错误,没有冲突。然后: git checkout master 告诉我我的本地回购比origin/master提前2次提交,所以我push。现在,如果我签出master,它是最新的,但我看不

在我的回购协议中,我有
主机
新分支
。我将文件添加到新文件中,提交并将其推送到远程repo。然后,我通过以下步骤将新版本合并到主版本中:

git checkout master (up-to-date)
git merge new_branch (no conflicts)
我看到快进合并和所有新文件。没有错误,没有冲突。然后:

git checkout master
告诉我我的本地回购比origin/master提前2次提交,所以我
push
。现在,如果我签出master,它是最新的,但我看不到我所做的合并:

git log --decorate --graph
它显示的唯一一个命令是我在合并它之前在
新分支中执行的命令。从图形上看,也没有合并的迹象。正常吗?

当基本分支和正在合并的分支之间的唯一区别是新分支中的新提交时,会发生快进合并。在这种情况下,git只需将基本分支的头移动到新分支中最近的提交。没有合并提交。这是正常的行为。如果您更喜欢合并提交,那么可以在
git merge--no ff
期间指定
--no ff
标志,就是这样。