I got this error when I was trying to be smart and extract the cloning URL from the repo's URL myself. I did it wrong. I was doing:
git@https://github.company.com/Project/Core-iOS
where I had to do:
[email protected]:Project/Core-iOS.git
I had 3 mistakes:
https://
.com
I need :
instead of /
.git