gpt4 book ai didi

linux - 如何在 svn 存储库上应用 diff linux 命令生成的补丁

转载 作者:太空宇宙 更新时间:2023-11-04 04:37:46 25 4
gpt4 key购买 nike

我有一个使用 diff 命令生成的补丁:

diff -ruN orig/ new/ > file.patch

我想使用 svn 实用程序在 svn repo 上应用此补丁。如何做到这一点?

最佳答案

$ svn help patch

patch: Apply a patch to a working copy.

usage: patch PATCHFILE [WCPATH]

Apply a unidiff patch in PATCHFILE to the working copy WCPATH. If WCPATH is omitted, '.' is assumed.

A unidiff patch suitable for application to a working copy can be produced with the svn diff command or third-party diffing tools. Any non-unidiff content of PATCHFILE is ignored, except for Subversion property diffs as produced by svn diff.

关于linux - 如何在 svn 存储库上应用 diff linux 命令生成的补丁,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41632091/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com