gpt4 book ai didi

git reflog 不显示分支更改

转载 作者:太空狗 更新时间:2023-10-29 13:24:43 26 4
gpt4 key购买 nike

在另一个问题中,用户发布了以下 reflog:

8c48bab HEAD@{16}: checkout: moving from develop to 8c48babb10ec2f8f28f364ce57b5095cb080c133^0
54d8daf HEAD@{17}: commit: changed the how function, it seems I was right, wc counts all lines regardless of readable symbols or not.
13d35ed HEAD@{18}: commit: am working on the how function (should be trivial, but I have a bad feeling)
852fb68 HEAD@{19}: commit: I have added some more commands (thought not fully implemented), but more specifically I have changed the pattern matching
33dfc9f HEAD@{20}: commit (merge): change some output settings, asthetics and such. I am working on getting more command options for list previous lin
a248465 HEAD@{21}: commit (amend): added another sanity check for cli parameters
f0ca508 HEAD@{22}: commit (amend): added another sanity check for cli parameters
9e24e91 HEAD@{23}: commit: added another sanity check for cli parameters
0194cab HEAD@{24}: commit: I am working on getting the console improved, this including better color, and more cammand options
8c48bab HEAD@{25}: checkout: moving from master to testing

HEAD@{25} 中,用户切换到测试分支。但是,在 HEAD@{16} 中,用户无需事先从测试转移到开发就可以从开发转移到提交。

如何在不反射(reflect)在 reflog 中的情况下更改分支?我不认为这个用户特别老练,所以我怀疑他使用了任何深奥的技巧。

最佳答案

似乎用户只是检查了一个特定的提交(使用 sha1)然后创建了分支。

更新

对不起,我误解了这个问题。用户可能已将分支 testing 重命名为 develop

关于git reflog 不显示分支更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11158544/

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