git增加了什么。 (git加单点)命令呢? [英] What does git add . (git add single dot) command do?

查看:108
本文介绍了git增加了什么。 (git加单点)命令呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



<$ p $在使用句点(或句号,单点)的情况下向舞台添加文件时,我无法得到Git命令p> $ git add。

这是干什么的?

解决方案

git add。添加/分级当前目录中的所有文件。这是为了方便起见,如果您使用 .gitignore


$ b添加了某些不想添加的文件,仍然可以使用它$ b

有关 .gitignore 的教程位于这里



深入研究 git add。 vs git add -A git add -u 位于这里,它可能会回答你的问题,如果你想更多地控制你如何添加所有文件/想知道 git add。有效。


I don't get what the Git command when adding files to the stage with the use of a period (or full stop, single dot) means:

$ git add .

What does this do?

解决方案

git add . adds / stages all of the files in the current directory. This is for convenience, and can still be used if you have certain files you don't want to add by using a .gitignore

A tutorial for .gitignore is located here.

A deeper look into git add . vs git add -A vs. git add -u is located here and it might answer your question if you wanted more control of how you add all of the files / wanted to know how git add . works.

这篇关于git增加了什么。 (git加单点)命令呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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