默认情况下,如何使 git-pull 变得冗长?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3696025/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 04:34:04  来源:igfitidea点击:

How can I make git-pull verbose by default?

gitgithub

提问by Jon Ursenbach

Looking through the git-config variables and git-pull documentation I don't see a way to make git-pull pull verbose by default. Anybody know of a way?

查看 git-config 变量和 git-pull 文档,我没有看到默认情况下使 git-pull pull 变得冗长的方法。有人知道方法吗?

回答by Cascabel

There's not a config parameter for everything! But you can mostly take care of it for yourself with an alias:

没有所有的配置参数!但是您可以通过别名自行处理它:

[alias]
    pv = pull -v

So you can use git pv <args>, save typing two characters, and get the verbosity you want.

因此,您可以使用git pv <args>,节省输入两个字符,并获得所需的详细程度。

回答by Benoit Courtine

In your git global config file, you can create "aliases".

在您的 git 全局配置文件中,您可以创建“别名”。

It is usefull to create new git commands (ignore, for example), or to define a default comportement to an existing command (in your case).

创建新的 git 命令(例如忽略)或为现有命令定义默认配置(在您的情况下)很有用。