[英]How can I avoid CRs in files in Git/IntelliJ on Windows?
I'm getting the /bin/bash^M: bad interpreter: No such file or directory
I know there are multiple posts for this as seen here: 我得到了
/bin/bash^M: bad interpreter: No such file or directory
我知道这里有多个帖子:
/bin/sh^M: bad interpreter: No such file or directory / bin / sh ^ M:解释错误:没有这样的文件或目录
https://askubuntu.com/questions/304999/not-able-to-execute-a-sh-file-bin-bashm-bad-interpreter https://askubuntu.com/questions/304999/not-able-to-execute-a-sh-file-bin-bashm-bad-interpreter
How to change line-ending settings 如何更改行尾设置
https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration https://git-scm.com/book/zh/v2/Customizing-Git-Git-Configuration
I'm devloping on a windows machine and trying to run on a Linux machine. 我正在Windows机器上开发并试图在Linux机器上运行。 I've tried the following:
git config --global core.autocrlf true
in intellij terminal Setting LF
on the bottom right of the intellij screen 我尝试了以下操作:
git config --global core.autocrlf true
在intellij终端中为git config --global core.autocrlf true
在intellij屏幕的右下角设置LF
Still getting same error. 仍然出现相同的错误。 i'm sorry about reposting, can't find any other fixes?
我很抱歉重新发布,找不到其他修复程序?
GIT: https://github.com/BillyCharter87/Tech-O-Dex-API/blob/master/scripts/runapp.sh Thanks GIT: https : //github.com/BillyCharter87/Tech-O-Dex-API/blob/master/scripts/runapp.sh谢谢
您可以在Linux中使用vi
, touch
, nano
创建脚本文件,而在Windows中不创建文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.