根据当前工作目录中未提交的更改创建一个git补丁 [英] Create a git patch from the uncommitted changes in the current working directory
本文介绍了根据当前工作目录中未提交的更改创建一个git补丁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
说我在工作目录中未提交更改.如何在不创建提交的情况下从这些补丁中进行修补?
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
进行无阶段的更改.
git diff --cached
用于分段更改.
git diff HEAD
用于已分阶段和未分阶段的更改.
git diff HEAD
for both staged and unstaged changes.
这篇关于根据当前工作目录中未提交的更改创建一个git补丁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文