For me it was some other git URL placed in config file, so I did change it manually:
- Move to .git/config file and edit it,
- Remove invalid URL(if it's there) and paste the valid git SSH/HTTP URL like below way:
[remote "origin"]
url = git@gitlab.com:prat3ik/my-project.git
And it was working!!