假设我有以下情况:
myrepo/
foo.txt
bar.txt
baz.txt
quux.txt
bingo.txt
Run Code Online (Sandbox Code Playgroud)
在rev 419中,我更改了foo.txt,bar.txt和bingo.txt.
现在我发现了一个错误,我想从rev 418保留foo.txt,但保留bar 41中的bar.txt和bingo.txt中的更改完整,所以我可以提交rev 420,所以它的foo.txt与rev 418.
我怎么能以最少的麻烦来做到这一点?
这就是我如何回滚先前提交的更改.
反向合并:svn --revision(恢复版本):(版本低于它)<.或文件名>
svn merge --revision 419:418 foo.txt
svn commit -m "Reverting commit ver:419 for foo.txt"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4277 次 |
| 最近记录: |