Git 直接提交更改
示例
通常,必须先使用gitadd或gitrm向索引添加更改,然后才能进行更改gitcommit。传递-a或--all选项以将每个更改(到跟踪的文件)自动添加到索引中,包括删除:
git commit -a
如果您还想添加提交消息,则可以执行以下操作:
git commit -a -m "your commit message goes here"
另外,您可以加入两个标志:
git commit -am "your commit message goes here"
您不必一次提交所有文件。省略-a或--all标志,并指定要直接提交的文件:
git commit path/to/a/file -m "your commit message goes here"
要直接提交多个特定文件,还可以指定一个或多个文件,目录和模式:
git commit path/to/a/file path/to/a/folder/* path/to/b/file -m "your commit message goes here"
热门推荐
1 训练狗狗憋尿
2 狗狗追踪训练
3 狗狗训练要多少钱
5 深圳狗狗训练
6 训练狗狗唤回
7 狗狗叫怎么训练
8 狗狗训练班
10 狗狗社会化训练
11 狗狗叫回训练
12 广州狗狗训练学校
13 狗狗训练躺下
14 狗狗随行训练
15 训练狗狗巡回
16 狗狗要怎么训练
17 狗狗喂食训练
18 训练狗狗躺下