从当前工作目录中的更改创建一个git补丁 [英] Create a git patch from the changes in the current working directory

查看:94
本文介绍了从当前工作目录中的更改创建一个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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆