分支使用旧提交进行部署

时间:2018-10-09 20:00:24

标签: github teamcity

我在Github有两个分支。 Master和CoolFeature。 当我在Github中检查CoolFeature时,我发现即使使用Master也是如此。

当我通过Team City部署时,Master分支以某种方式从Master分支中获得了一个提交,该提交落后了五个提交。通过查看SHA1,我可以在Team City中看到它。我错过了某些功能吗?

当我部署CoolFeature分支时,最新的更改会起作用,因为CoolFeature会部署最新的提交。

编辑:

当我结帐master分支时,我收到以下消息:

> git checkout origin/master
Note: checking out 'origin/master'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at e86824af5...

SHA1哈希引用e86824af5 ...是最新提交。这是我要部署的一个。但是TeamCity部署的提交比该提交晚5个提交。我可以在比较SH1哈希ID的日志中看到它。

0 个答案:

没有答案