Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 nuke 构建工具来构建我的 .net 核心应用程序。
有谁知道为什么这个命令需要 2 分钟?这个问题存在于我所有的项目中。
git.exe rev-parse --abbrev-ref HEAD
这是有道理的,这是您的 git 安装中的本地问题。可以执行以下命令看看为什么需要这么长时间
GIT_TRACE_PERFORMANCE=true git rev-parse --abbrev-ref HEAD # or without the time stamp GIT_TRACE=true git rev-parse --abbrev-ref HEAD
检查输出,你会看到什么需要很长时间。