How to switch back to main (master?) branch from dev branch?

Sorry for this clumsy request; I can’t find the answer from googling around.

I recently installed dietpi on a pi 4 with immich. This failed, as discussed elsewhere, and the fix was to switch to the DEV branch, then re-install immich. I did this and it’s working great.

G_DEV_BRANCH dev
dietpi-software install 215 216

But, since there is now a new v10.6 release, I presume it’s OK to switch back to the main (master?) branch?

I don’t know how to do this!

Can anyone help?

Thanks

Ian

In /boot/dietpi.txt, change DEV_GITBRANCH to master. This setting is what dietpi-update considers to check for and applies updates from. You can also use our function for that:

G_CONFIG_INJECT 'DEV_GITBRANCH=' 'DEV_GITBRANCH=master' /boot/dietpi.txt

Now dietpi-update should offer v10.6.2. If you are on that version from the dev branch already. You can safely stay there, until v10.7 release. There are no relevant differences between v10.6.2 on master and dev.

But if you want to enforce the switch back to master now, you can run this:

G_DEV_BRANCH master

This applies an update even if the target branch is on the same or lower version.