gpt4 book ai didi

git - 我现在在哪个分支?

转载 作者:行者123 更新时间:2023-12-04 16:47:02 26 4
gpt4 key购买 nike

我正在使用 git .当我跑 git status ,它显示了下面的输出。我的问题是,我在哪个分支?

d:\2016_Project\toyota\tpm>git status                                                                                                
HEAD detached from 42376c1
nothing to commit, working directory clean

d:\2016_Project\toyota\tpm>git log --all --oneline
5d4239f done basic styling
42376c1 done notif on reminder page
d673796 done reminder page
514aba8 done prospek task
e88ff91 done update prospek profil & task
289654b add fontawesome
377c594 done basic prospek profile
d59022c add prospek task
:

更新#1
这是我列出我的分支的时间。哪个分支有我上次更改的版本?
d:\2016_Project\toyota\tpm>git branch                                                                                                
* (detached from 42376c1)
add-customer-profile
master

最佳答案

您当前不在分支上。您的 git当前处于所谓的“分离 HEAD”模式,在这种模式下,您的 HEAD(当前最新提交)指向历史记录中的任意提交,而不是特定分支的尖端。您很可能通过执行 git checkout <commit-id> 达到此状态,并且可以通过执行 git checkout <branch-name> 返回到您选择的分支的尖端.

关于git - 我现在在哪个分支?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39432863/

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