随笔分类 -  Git

摘要:原因是需要提交的文件是在windows下生成的,windows中的换行符为 CRLF, 而在linux下的换行符为LF,所以在执行add . 时出现提示, 解决办法: git config --global core.autocrlf false 再执行git 提交 阅读全文
posted @ 2020-06-04 09:11 ZJT_T 阅读(311) 评论(0) 推荐(0)
摘要:git fetch 时,提示错误 error: cannot lock ref 'refs/remotes/origin/xxx': unable to resolve reference 'refs/remotes/origin/xxx': reference broken。 在使用 git fe 阅读全文
posted @ 2020-05-27 21:42 ZJT_T 阅读(1044) 评论(0) 推荐(0)