gpt4 book ai didi

git - 如果没有提供参数, "git checkout"会做什么?

转载 作者:太空狗 更新时间:2023-10-29 12:50:30 24 4
gpt4 key购买 nike

我不小心在 GIT CMD 中键入了 git checkout,但在我的工作分支中没有任何参数。父分支名称是开发。在我点击命令后,它显示如下:

M       analytics-engine/build.gradle
M analytics-engine/src/main/groovy/com/oracle/emcsas/securityanalytics/stats/timebucket/ExternalizeTimeBucket.java
M analytics-engine/src/main/groovy/com/oracle/emcsas/securityanalytics/stats/timebucket/TimeBucket.java

但我没有注意到我本地的分支机构有任何变化。所有的变化都在那里。那么它实际上做了什么。

git 版本 2.15.0.windows.1

最佳答案

The documentation says

git checkout <branch>

...

You could omit <branch>, in which case the command degenerates to "check out the current branch", which is a glorified no-op with rather expensive side-effects to show only the tracking information, if exists, for the current branch

关于git - 如果没有提供参数, "git checkout"会做什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49192861/

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