我如何自动将新文件添加到Git? [英] How do I automatically add new files to Git?
本文介绍了我如何自动将新文件添加到Git?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道我可以为所有文件做git add,但是我得到了很多文件。有没有办法做到像git add * .h或git add * .py?
I know I can just do git add for all the files, but I got a ton of files. Is there a way to do something like "git add *.h", or "git add *.py" ?
推荐答案
是的,你可以说 git add * .py
确保你在做这件事之前完成了git init。
Yes you can say git add *.py
Make sure you have done git init before doing this.
要添加文件夹中的所有文件,您可以简单地说 git add。
To add all files in a folder you can simply say git add .
这篇关于我如何自动将新文件添加到Git?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文