gpt4 book ai didi

windows - Git 找不到别名命令

转载 作者:可可西里 更新时间:2023-11-01 09:19:40 24 4
gpt4 key购买 nike

当我启动 RStudio shell 时,我有一个 git 别名在工作。

如果我尝试从 Windows 命令行运行别名,它会显示“...不是 git 命令”。

对比here ,似乎找不到我的 C:/Users/user/.gitconfig,因为它没有显示在 git config --list --show-origin 中。

我想,我必须引用文件?

我如何在 Windows 上执行此操作?感谢您的帮助。

最佳答案

"I guess, I have to reference to the file? "

您只需将HOME 环境变量设置为%USERPROFILE%
Git 在 %HOME% 中搜索全局配置文件(在 Windows 上默认情况下未设置)。

您可以在 Daniel Lee 的“Git for Windows tip: Setting $HOME and the startup directory”中找到示例。

edit variable HOME

关于windows - Git 找不到别名命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36687550/

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