How to switch from 5 beta back to main branch?

Read the first post here:

https://discourse.pi-hole.net/t/pi-hole-v5-0-is-here/