答: 改变仓库的地址(<source code dir>/.git/config中的[remote "origin"]),如:
.git/config中的[remote "origin"]如下:
[remote "origin"]
url= git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git
fetch = +refs/heads/*:refs/remotes/origin/*
修改为:
[remote "origin"]
url= https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git
fetch = +refs/heads/*:refs/remotes/origin/*