Here's my current situation:
I downloaded Dolibar 16.0.3 from the releases page and unzipped it on my local machine.
Then I git inited my own repository and push everything to a selfhosted Bonobo remote as a branch called "clean" which is just that, Dolibarr 16.0.3 as it came from github.
Then I created a branch called "custom" where I worked on my own stuff.
Now I want to update to 16.0.5.
I tried:
- Copying the folder
- Renaming it to Dolibarr16.0.5
- Adding the github project as a fetch remote
- fetching all tags
git rebase --onto < commit for 16.0.5 > < commit for clean branch > custom
Then I fixed conflicts and everything seemd to work fine but I don't know If I did the correct thing.
Surely copying and pasting the folder was not how I should do it because I assume the .git folder still points to the old Dolibarr16.0.3 remote
I also have 4 branches checkout to their own folders outside the main repo folder. (Righ now I just make changes in "custom" and rebase each branch to custom so they all have the changes, RR enabled to automate a bit of merging)
Should I just clone the project from github from scratch and move my custom branch over to it? How would the update process work, just rebase my custom branch to whatever tag I want?