【发布时间】:2011-10-14 20:00:04
【问题描述】:
这个问题听起来很简单,但我就是不明白。 如何将两个文件夹合并为一个?
假设我有这个 maven 结构:
module1
- src/main/java
- com.app.func1
- file1
- com.app.func1.some2
- file3
- file4
module2
- src/main/java
- com.app.func1
- file1
- file111
- com.app.func1.some2
- file333
- file6
我想将整个 src/main/java 从模块 2 合并到模块 1 中
合并后应该是这样的:
module1
- src/main/java
- com.app.func1
- file1 // it would be nice if the tool would let me visually merge this item
- file111
- com.app.func1.some2
- file3
- file333
- file4
- file6
这两个模块都已经在版本控制之下,我不想丢失历史记录。
如果有人可以帮助我,那就太好了。
我已经尝试过 Eclipse subversive/subclipse und Tortoise SVN,但我做得不对。
大多数时候我都会收到一些错误消息,例如 module1 中已经存在文件夹 src。没错,但我实际上并不关心文件夹,它们应该像在 Windows 上一样集成。 其他时候,通过合并,模块 1 中的所有文件都被删除并被模块 2 中的文件覆盖。
问候
【问题讨论】: