Clone repository from old git

hi friends.
I need clone repository from old git that install in windows server.
I usually clone a repo with this command:
git clone username@SERVER-IP:C:\path\to\repository\

now when I use this URL SERVER-IP:C:\path\to\repository\ to create migration from a repository in gitea see this error:
The local path is invalid. It does not exist or is not a directory.

what can I do?

I think you could try to clone onto somewhere else and change the origin to your new repo.
This way you also have all the commits in your repo on gitea.