For example i have dirA, dirB - all with subdirectories. I want to merge dirA into dirB with "force" dirA. I tryied to use this
/usr/bin/rsync -avh --progress dirA dirB
But "force" dirA don't work. Need similarity git merge with force overwrite. And found this
cp -r dirA dirB
dirB/dirA
. I don't believe this is what you want. Could you clarify what you mean by "force"? – Panki Mar 30 '22 at 16:52dirA
intodirB
, overwriting common files, that would becp -r dirA/* dirB/
– Panki Mar 30 '22 at 16:54cp -a dirA/. dirB/
(including that trailing dot in the source specification). Also see this answer elsewhere on U&L – Chris Davies Mar 30 '22 at 17:16git merge
. Please explain in your question the feature that you want in terms of what it should do, not in terms of another command. – Chris Davies Mar 30 '22 at 20:17