I'm trying to merge a few subdirectories from a remote git repository to my repository. Both Remote and Local Repositories include the whole kernel repository and I'm interested only in the wireless relevant files.
I tried to follow the instructions under "How to use the subtree merge strategy", but since most of the files exist both in local repository and in remote repository the
git read-tree --prefix=dir-B/ -u Bproject/master
command fails. I could not use -m
option and --prefix
in the same command line.
This merge actually should update (merge/pull) all relevant wireless directories/files according to the files in the remote repository where conflicts should be solve by preferring the remote files.
To make my question general -- say you have repository A and B. both have the folder wireless_dir: A/wireless_dir, B/wireless_dir. I'm working on repository B and would like to update all its files in B/wireless_dir from A/wireless_dir where changes in A/wireless_dir are preferred when merge conflicts occur.