I need to essentially merge changes on two trees, applying the changes from branch 2 to branch 1. I have trees like this:
media
├── cd
│ ├── 0
│ │ ├── file1
│ │ ├── file2
│ │ └── file3
│ ├── 1
│ │ ├── file1
│ │ ├── file2
│ │ └── file3
│ └── 2
│ ├── file1
│ ├── file2
│ └── file3
├── dvd
│ ├── 0
│ │ ├── file1
│ │ ├── file2
│ │ └── file3
│ ├── 1
│ │ ├── file1
│ │ ├── file2
│ │ └── file3
│ └── 2
│ ├── file1
│ ├── file2
│ └── file3
└── stuff
├── 0
│ ├── file1
│ ├── file2
│ └── file3
├── 1
│ ├── file1
│ ├── file2
│ └── file3
└── 2
├── file1
├── file2
└── file3
I've changed the files in my branch 2, and I need to apply them to branch 1. If I just try moving them over branch 1, I get the following errors:
mv: cannot move `/branch2/media/cd' to `/branch1/media/cd': Directory not empty.
Is there another command I should be using for this? mv -f doesn't seem to do the trick.
mv /branch2/media/* /branch1/media/– TK Kocheran Oct 19 '11 at 22:49mv branch2/media/ branch1/mediawork? – jasonwryan Oct 19 '11 at 22:55mvwon't overwrite files in existing subdirectories. – TK Kocheran Oct 19 '11 at 23:23