点滴生活,记录随心

2020年4月

2020年04月28日

fix git push error: shallow update not allowed

rt:git推送一个github的库到自己的gitlab服务器的时候,提示了错误:shallow update not allowed手动执行强推:git push -u origin master,没有效果。根据提示,初步分析原因,提示的问题应该是浅拷贝,就是我们在git clone的时候,depth设置的太浅,没有全部的历史记录。所以解决办法,应该是从原来的地址,把整个git库都clon...