Error when cloning git “shallow” repository

后端 未结 2 1521
悲哀的现实
悲哀的现实 2021-01-04 18:38

I\'m getting the following error when issuing the command git clone --bare /path/to/repo:

fatal: attempt to fetch/clone from a shallow repository<

2条回答
  •  醉酒成梦
    2021-01-04 18:48

    Rename .git/shallow to something else, clone, rename it back, copy .git/shallow to cloned repository

提交回复
热议问题