简体   繁体   English

PhpStorm Git 集成与命令行

[英]PhpStorm Git integrated vs commandline

Files committed via PhpStorm's integrated Git handling still show as modified when viewed with commandline git status .通过 PhpStorm 的集成 Git 处理提交的文件在使用命令行git status查看时仍显示为已修改。 They still push successfully to the remote on GitLab.他们仍然成功推送到 GitLab 上的遥控器。

With Git 2.8+ (Q1 2016) , you can use git ls-files --eol -- a/file/still/modified to check if the current change is related ot EOL (end of line character: \n vs. \r\n )使用Git 2.8+ (Q1 2016) ,您可以使用git ls-files --eol -- a/file/still/modified以检查当前更改是否与 EOL 相关(行尾字符: \n vs. \r\n )

That way, you will know more about why those files are shown modified in your working tree (and displayed as modified in your IDE).这样,您将更多地了解为什么这些文件在您的工作树中显示为已修改(并在您的 IDE 中显示为已修改)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM