git: shallow update not allowed
git: shallow update not allowedemmmm 更换仓库的历程充满了坎坷。今天在笔记本上换成新仓库。准备push,然而问题来了: ! [remote rejected] master -> master (shallow update not allowed)[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-uRG4Q6J8-163142
·
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
更多推荐
已为社区贡献3条内容
所有评论(0)