Fatal: unable to access 'https://github.com/pi-hole/pi-hole.git/':

If you are running Pi-hole v6 Beta you already used pihole checkout command.
There is no other way to install the beta version.

The original v6 Beta announcement explained how to switch to the development branch: