I
git clone -v https://test.example.cc/Taotie/discover.git /Users/Macbook/go/src/test.example.cc/Taotie/discover
It fail.
git clone https://test.example.cc/Taotie/discover.git
Cloning into 'discover'...
fatal: 'git@test.example.ccTaotie/discover.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
but if I
git clone https://github.com/xormplus/xorm.git
it works.
I don't know why it miss a "/" int the git url .
and if I
git clone git@test.example.cc:Taotie/discover.git
it works,because I have already add my mac rsa_pub into the gitlab and I can always git clone success with this format
git clone git@test.example.cc:anything/project.
The reason I ask this question it that I use go get and it return error
bogon:Taotie Macbook$ go get test.example.cc/Taotie/discover
# cd .; git clone https://test.example.cc/Taotie/discover.git /Users/Macbook/go/src/test.example.cc/Taotie/discover
Cloning into '/Users/Macbook/go/src/test.example.cc/Taotie/discover'...
fatal: 'git@test.example.ccTaotie/discover.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
package test.example.cc/Taotie/discover: exit status 128
Finally git config --global url."git@test.example.cc:".insteadOf "https://test.example.cc/"
solved my problem~~~