即:git pull -p
如果远程库里删了某个分支或是某些文件,那么用git pull的时候会报错“error: cannot update the ref 'XXX: there are still logs under 'XXX”。
那么加上-p就会把本地的分支或是那些文件也删除掉了。其实报错是为了防止误删东西。
即:git pull -p
如果远程库里删了某个分支或是某些文件,那么用git pull的时候会报错“error: cannot update the ref 'XXX: there are still logs under 'XXX”。
那么加上-p就会把本地的分支或是那些文件也删除掉了。其实报错是为了防止误删东西。