提交没有分段的文件 [英] Commit files without Staging
本文介绍了提交没有分段的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Git的新手,我正在使用Git扩展。我想问,当我提交目录是否这些文件自动进行分段或这些得到提交没有分期?
我可以提交文件吗?
解决方案
是的,您可以使用 a
和 m
在提交中:
git提交-am我的提交信息
然而,我倾向于使用 git add -u
总之,因为上面的命令不会打开未跟踪的文件。
I am new to Git and I am using Git extension. I want to ask that When I commit the directory Whether these file automatically go for staging or these get committed without staging?? Can I commit files without staging??
解决方案
Yes, you can stage and commit using a
and m
in the commit:
git commit -am "my commit message"
However, I tend to use git add -u
anyway because the above command will not stage untracked files.
这篇关于提交没有分段的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文