Git Add是否有冗长的开关 [英] Does Git Add have a verbose switch

查看:72
本文介绍了Git Add是否有冗长的开关的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将我的所有私人公开回购移至github.我做出的决定之一是仅使用控制台,因为如果我需要更换PC等,这意味着工具的占用空间较小.

I am in the process of moving all my private an public repo's over to github. One of the decisions I have made is to only use the console as it means a smaller tooling footprint if I ever need to change PCs, etc.

我将是大量的控制台应用程序用户,并且是git的新手,因此决定购买Tekpub的Mastering Git系列,因为它向您展示了如何将git bash集成为工具栏.

I would be a huge user of console applications and being new to git I decided to purchase Tekpub's Mastering Git series since it shows you how to intergrate git bash as a toolbar.

一切正常,除了添加全部"命令是

Everything is working fine except for the add all command which is:

git add .

它似乎正在工作,但是我没有任何迹象表明它是否工作.是否有一个冗长的开关(我想就是这样,它会说)在启动命令后跟踪了哪些文件?

It seems to be working but I don't get any indication of it working or not. Is there a verbose switch (I think that is what it would be called) that would say what files were tracked after the command is launched?

我将Visual Studio 2010与git的标准安装一起使用(不是Git扩展)

I am using Visual Studio 2010 with the standard install of git (Not Git extensions)

推荐答案

对于一些 git命令,您可以指定-verbose

For some git-commands you can specify --verbose,

git'command'--verbose

git'command'-v .

确保开关在实际的git命令之后.否则-它将无法正常工作!

Make sure the switch is after the actual git command. Otherwise - it won't work!

也有用:

git 'command' --dry-run 

这篇关于Git Add是否有冗长的开关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆