从当前工作目录中的更改创建一个git补丁 [英] Create a git patch from the changes in the current working directory
本文介绍了从当前工作目录中的更改创建一个git补丁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
git diff code> for unstaged changes。
git diff --cached
用于分阶段更改。
Say I have uncommitted changes in my working directory. How can I make a patch from those without having to create a commit?
解决方案
git diff
for unstaged changes. git diff --cached
for staged changes.
这篇关于从当前工作目录中的更改创建一个git补丁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文