gpt4 book ai didi

git - 在 git pull 之后在 gitk 中显示新的修订

转载 作者:太空狗 更新时间:2023-10-29 14:40:50 26 4
gpt4 key购买 nike

在执行 git pull 之后,我想在 gitk 中查看刚刚获取的修订。我怎样才能做到这一点?我知道我可以在 git pull 的输出中看到要使用的修订,我可以将它们作为参数提供给 gitk,但我想自动执行此操作。

(其实,我不需要看到所有的fetched revisions,那些来自当前分支的就足够了。)

我使用 msysgitgit bash

最佳答案

您可以尝试类似于“How can I see incoming commits in git?”中使用的命令

git fetch && gitk ..origin/master

,使用 <rev>gitk [<option>…] [<revs>] [--] [<path>…]”语法的一部分。

<revs>

Limit the revisions to show.
This can be either a single revision meaning show from the given revision and back, or it can be a range in the form "<from>..<to>" to show all revisions between <from> and back to <to>.

关于git - 在 git pull 之后在 gitk 中显示新的修订,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3231200/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com