赞
踩
1、Git添加本地(git add .)缓存区无法提交
warning: LF will be replaced by CRLF in
warning: LF will be replaced by CRLF in catch/cms/database/migrations/20201111093349_cms_cate.php.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in catch/monitor/database/migrations/20200914203553_crontab.php.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in catch/sms/database/migrations/20200916172849_sms_config.php.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in catch/system/database/migrations/20201111172307_cate_config.php.
The file will have its original line endings in your working directory
出现原因:存在符号转义问题
windows中的换行符为 CRLF, 而在linux下的换行符为LF,所以在执行add . 时出现提示
解决方案:
git config --global core.autocrlf false
2、获取Git状态报错:
git status
interactive rebase in progress; onto a3aafd6
解决方案:
git rebase --abort
状态获取成功:
Admin@DESKTOP-UDQ4GUV MINGW64 /f/Project/WEB/catchAdmin/new_catchadmin/catchAdmin (master|REBASE 1/1)
$ git rebase --abort
Admin@DESKTOP-UDQ4GUV MINGW64 /f/Project/WEB/catchAdmin/new_catchadmin/catchAdmin (master)
$ git status
On branch master
nothing to commit, working tree clean
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。