Unsupported state: your HEAD is currently detached. Please checkout a branch

I tried to use Git with my replit but I got this message:

Unsupported state: your HEAD is currently detached.
Please checkout a branch.

How can I solve it?