[英]Take a patch of working directory changes in git
How to take a patch of working directory changes in git directory. 如何在git目录中获取工作目录更改的补丁。 I know the method for taking the patch in SVN, but in git i don't know how to take it.
我知道在SVN中获取补丁的方法,但是在git中,我不知道如何获取它。 pls help
请帮助
A simple git diff
generates a patch that can be applied with most patch
tools with a bit of tweaking (eg using --strip
). 一个简单的
git diff
生成一个补丁,只需--strip
调整即可将其应用于大多数patch
工具(例如,使用--strip
)。 Of course, git apply
, if available, would be the preferred tool to apply such a patch. 当然,如果有
git apply
,它将是应用此类补丁的首选工具。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.