Yes, thank you @pfaffman and @Moin you were both correct… I had copy/pasted the command
https://github.com/discourse/discourse.git /var/discourse into the web-based console in Hetzner
I tried typing it into the console instead, and indeed that worked!