Or you could just do it the way the instructions say?
From Announcing a Beta test of Pi-hole 5.0!
OK, enough reading.. how do I switch to the beta?
echo "release/v5.0" | sudo tee /etc/pihole/ftlbranch
pihole checkout core release/v5.0
pihole checkout web release/v5.0