"git add"是什么? ('git add'单点)命令吗? [英] What does the 'git add .' ('git add' single dot) command do?

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

问题描述

当使用句点(或句号,单点)将文件添加到舞台时,我不了解Git命令的含义:

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

$ git add .

这是做什么的?

推荐答案

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

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

.gitignore的教程位于此处.

位于

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 add"是什么? ('git add'单点)命令吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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