Is it possible to transfer changes from one branch to another, without conflict.
I want to do this, I have 2 boards (2 branches) on which I can debug the algorithms, the boards differ only in the initialization file (or initialization commit, there may be several files)
After adding changes to one branch, I want to transfer only the changes made to another branch. The cherry-pick command does this with a conflict, as there are changes in the initialization files.
Well, I will describe a little more in detail, I do embedded programming and use git purely for myself, to create test branches of all different peripherals, and not to lose (spoil) the main project.
So, regarding the boards, you correctly understood this printed circuit boards, with the connection of all peripherals to the processor and the connection is just a little different, but there are algorithms that are completely independent of hardware, so I want to drive them, then on one board, then on the other to the board, and I want to make all the changes that I made, on one board it was possible not to transfer my head to the other, and continue there.
My program has a modular ( .Ń , .h files) composition, initialization of each periphery, is in its module, so that you can throw two files into another (new) project and not to look for how to turn it on later. (But here Iām already considering the option to put all the initialization functions in a separate file).
But in this version, this is not appropriate because, in addition to the initialization files, for each board it was necessary to make some minor changes to several modules (due to differences in the size of flash in the processor, the page size changed, and on one board it changed the data transfer functions The transfer method without using DMA) although it can be put into the configuration file, but still something new can come out, such as with a change in the transfer method.
The player one comment, suggested to me that I should make my own repository for each module, and in the new project we should combine them all with the help of submdule, I donāt know what this will lead to, I havenāt been digging much in this direction.
But I think it should turn out that if I found some kind of bug in one module, it will automatically be eliminated in new projects, and the old ones wonāt crawl if you donāt specifically download the module, and make these changes, this is fine with me, I have long wanted to do this but did not know which way to dig.
<<<<<<< *HASHofFIRSTCOMMIT*:mergetest This is my third line ======= This is a fourth line I am adding >>>>>>> *HASHofSECONDCOMMIT*:mergetest- Sanek Zhitnikgit statuscommand to better understand what the git wants from you. - Sanek Zhitnik