假设 git add
命令。当我输入 man git add
时,我得到它的页面。
SYNOPSIS
git add [--verbose | -v] [--dry-run | -n] [--force | -f] [--interactive | -i] [--patch | -p]
[--edit | -e] [--[no-]all | --[no-]ignore-removal | [--update | -u]]
[--intent-to-add | -N] [--refresh] [--ignore-errors] [--ignore-missing]
[--] [<pathspec>...]
我有两个问题:
git add --verbose
和git add -v
一样吗?- 对于
git
,python
等其他命令,--fullNameA
是否与-A
相同? (fullNameA缩写为A)
最佳答案
[--xxx | 中的每个选项-x]
字符相同,所以 [--verbose | -v]
表示 --verbose
将执行与 -v
相同的操作。所有 man
页面都是如此。
关于关于 [OPTIONS] 的 Linux man 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43996117/