I have 2 branches in my local repo - master(core files) and master_with_adds(core + additional configuration)
- master
- system/
- libs/
- master_with_adds
- system/
- libs/
- adds/
All 2 branches contain same files but master_with_adds
contains additional folder. Now I switched to master_with_adds
, make some changes and commit it. How can I update my master
branch with only files existing in master
? i.e. I have to copy only system
and libs
, folder adds
must not be copied.
SOLVED: I've found the answer here git 'merge' only existing files