git fatal: reference is not a tree错误处理方法
当checkout遇见“fatal: reference is not a tree”的错误时,可能是因为非常规操作导致分支的HEAD文件时间早与主分支的HEAD文件时间。使用touch命令将分支HEAD时间刷新即可。#linuxtouch .git/refs/heads/分支名#windows powershellSet-ItemProperty -Path .git\refs\heads\分支名 -Name CreationTime -Value (date)Set-ItemPropert
原创
2021-08-27 16:03:39 ·
8004 阅读 ·
0 评论