首页 > 解决方案 > git pull 总是打开一个新的提交窗口

问题描述

我对 git 感到有些困惑,我的 git 基础知识已经搞砸了。

我在 master 分支上工作,做了一些更改,做了一个 git add+git commit,然后我做了一个 git pull,现在我很困惑,因为每当我做一个 git pull 时,我都会得到一个新的提交窗口。

早些时候,每当我执行上述步骤时,提交消息永远不会出现,它会自动与远程源合并。

现在,每当我使用远程源执行 git pull 时,都会弹出新的提交窗口。

有些东西搞砸了,但我无法弄清楚。

请帮忙。

这是 git log,对我来说看起来很奇怪。

每当我执行 git pull 时,都会显示第一次提交。除非我搞砸了,否则这不应该发生。请帮助我了解发生了什么问题。

commit e5dac0fbd72f17d87c9ec2090f29b603b399088f (HEAD -> master)
Merge: b44d245 f407e5b
Author: Abhi
Date:   Mon Apr 30 02:32:32 2018 -0700

    Merge branch 'master' of https://github.com/networks/test_automation

commit b44d245400b72a994ff57f0ac2a5db7b75964266
Author: Abhi
Date:   Mon Apr 30 01:51:48 2018 -0700

    Test cases for the remote EP feature.

    Add test cases for pod traffic between same uplink, different uplink
    Add test cases for creating multiple EPG and assiging pods to EPG
    and checking the connectivity between them

commit f407e5bcae8a798a84e28d275432a324889523f8 (origin/master, origin/HEAD)
Author: Ceridwen 
Date:   Fri Apr 20 16:40:31 2018 -0700

    Use acikubectl to write the cluster-report to a file

commit 8b0084c6ca9df913a05f6c910d923621032ea0d2

标签: gitgithub

解决方案


感谢大家的帮助。

以防万一有人想知道我当时是如何解决的;我使用了 git pull --rebase 并且它在没有创建新提交的情况下工作。


推荐阅读