如何在不指定完整路径的情况下添加或提交特定文件? [英] How to add or commit specific files without specifying their full path?
本文介绍了如何在不指定完整路径的情况下添加或提交特定文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 git status
之后,我有很多文件.有什么方法可以提交特定的子集,而无需手动指定此子集中的每个文件的路径.
I have a lot of files after git status
. Is there any way to commit specific subset without manually specifying every file's path in this subset.
推荐答案
您可以通过执行 git add 或仅指定文件所在目录来提交所有文件:
git添加./folder/
或添加所有以"test"开头的文件: git add test *
You can commit all files by doing a git add .
or just specifying the directory that they're in: git add ./folder/
or to add all files that begin with "test": git add test*
这篇关于如何在不指定完整路径的情况下添加或提交特定文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文