git 报错: shallow update not allowed
我的github pages: perfectnewer.gitub.io
记录使用git过程中遇到的问题
前言
emmmm 更换仓库的历程充满了坎坷。在笔记本上换成新仓库。准备push,然而问题来了: ! [remote rejected] master -> master (shallow update not allowed)。
解决方法
google后找到了解决方案:stackoverflow
# 重新拉取原repo的信息。原因是因为当时拉取仓库时没有拉取完整的信息
# 使用了 git clone --depth <number>
$ git fetch --unshallow github