如何提交单个分段文件? [英] How to commit a single staged file?
本文介绍了如何提交单个分段文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经上传了两个文件 file1.js
和 file2.js
但我只想提交 file2.js
。我怎样才能做到这一点?
I have staged two files file1.js
and file2.js
but I only want to commit file2.js
. How can I do this?
推荐答案
最简单的解决方案:取消其他(git状态告诉你如何, git reset
)。
Simplest solution: unstage the other (git status tells you how, git reset
).
这篇关于如何提交单个分段文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文