Git克隆不支持insteadof吗?我试过Git v1.8.3.1和v2.16.5。我的~/.gitconfig包含
[url "/home/USER/pub/"] insteadOf = GITPUB
当添加远程时,替换工作正常,但在克隆时不正常。
git clone GITPUB/repo.git
致命:存储库“gitpub/repo.git”不存在
git remote add my_remote GITPUB/repo.git && git remote update
工作正常