小编Lar*_*ars的帖子

带有空格的 Bash 命令(git config 或 git-config?)

如果这看起来很容易,请原谅我,但我两天前才开始学习 Unix。

基本上,我被教导在终端中输入命令时,它需要采用以下形式:

[command name][space][-options][space][arguments]
Run Code Online (Sandbox Code Playgroud)

现在我刚刚开始考虑使用 git,我遇到了以下问题:

git config --global core.editor "notepad.exe -wl1"
Run Code Online (Sandbox Code Playgroud)

那么在这种情况下是git config命令吗?当它中间有一个空间时,它如何工作?unix 不会感到困惑并认为config是一种选择吗?

也只是为了让事情更加混乱,我经常看到一个名为git-config. 这和 一样git config吗?

我发现在精确语法非常重要的地方,这些事情没有得到清楚的解释,这真的很令人困惑。

command-line git whitespace

6
推荐指数
2
解决办法
1125
查看次数

标签 统计

command-line ×1

git ×1

whitespace ×1