简体   繁体   中英

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/sh^M: bad interpreter: No such file or directory

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

I'm devloping on a windows machine and trying to run on a Linux machine. I've tried the following: git config --global core.autocrlf true in intellij terminal Setting LF on the bottom right of the intellij screen

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

您可以在Linux中使用vitouchnano创建脚本文件,而在Windows中不创建文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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