Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在控制台中查看git命令的选项?_Git - Fatal编程技术网

如何在控制台中查看git命令的选项?

如何在控制台中查看git命令的选项?,git,Git,通常我是通过输入一些假的选项来完成的,这样当它看到我明显不知道自己在做什么时,它就会告诉我所有的真实选项 让它列出命令的所有选项的实际方法是什么 我目前所做的示例: $ git push -aslivuq --fake-flag error: unknown switch `a' usage: git push [<options>] [<repository> [<refspec>...]] -v, --verbose be mo

通常我是通过输入一些假的选项来完成的,这样当它看到我明显不知道自己在做什么时,它就会告诉我所有的真实选项

让它列出命令的所有选项的实际方法是什么

我目前所做的示例:

$ git push -aslivuq --fake-flag

error: unknown switch `a'
usage: git push [<options>] [<repository> [<refspec>...]]

    -v, --verbose         be more verbose
    -q, --quiet           be more quiet
    --repo <repository>   repository
    --all                 push all refs
    --mirror              mirror all refs
    --delete              delete refs
    --tags                push tags (can't be used with --
    -n, --dry-run         dry run
    --porcelain           machine-readable output
    -f, --force           force updates
    --force-with-lease[=<refname>:<expect>]
                          require old value of ref to be a
    --recurse-submodules[=<check>]
                          control recursive pushing of sub
    --thin                use thin pack
    --receive-pack <receive-pack>
                          receive pack program
    --exec <receive-pack>
                          receive pack program
    -u, --set-upstream    set upstream for git pull/status
    --progress            force progress reporting
    --prune               prune locally removed refs
    --no-verify           bypass pre-push hook
    --follow-tags         push missing but relevant tags
$git push-aslivuq——伪标志
错误:未知的开关'a'
用法:git push[][…]]
-v、 ——冗长,更冗长
-q、 ——安静点,安静点
--回购存储库
--全推全裁判
--镜像所有参考
--删除引用
--标签推送标签(不能与一起使用--
-n、 --试运行试运行
--机器可读输出
-f、 --警队更新
--租赁强制[=:]
要求ref的旧值为
--递归子模块[=]
子对象的递归推送控制
--使用薄包装
--接收包
接收包程序
--执行官
接收包程序
-u、 --为git pull/status设置上游设置上游
--进度部队进度报告
--修剪修剪局部删除的引用
--无需验证旁通预推钩
--跟随标签推送丢失但相关的标签

也许你的意思是
mangit-[command]
?(例如
mangit-push

你可以通过运行
mangit-
git--help来查看手册页,方法是按照Brian Roach的注释:

git <command> -h or git help <command> for a full man page.
git-h或git帮助获取完整的手册页。
git-h
git-help
获取完整的手册页。