gitclone遇到的问题记录
1、git clone your仓库链接 --depth=1;
2、再执行:git fetch --unshallow
报错提示如下:
fatal: --unshallow on a complete repository does not make sense
解决方案:
1、git config remote.origin.fetch
2、git config remote.origin.fetch "+refs/heads/:refs/remotes/origin/"
3、查询:git config remote.origin.fetch;;返回:+refs/heads/:refs/remotes/origin/
4、再次执行:git remote update
5、查看分支,所有的远程分支都拉取下来了;git branch -a
参考:参考

浙公网安备 33010602011771号