如何在Windows上的Git / IntelliJ文件中避免使用CR?

问题描述 投票:-1回答:1

我得到了/bin/bash^M: bad interpreter: No such file or directory我知道这里有多个帖子,如下所示:

/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

我正在开发一台Windows机器并尝试在Linux机器上运行。我尝试了以下内容:intellij终端中的git config --global core.autocrlf true设置intellij屏幕右下角的LF

仍然得到同样的错误。对于重新发布我很抱歉,找不到任何其他修复方法?

GIT:https://github.com/BillyCharter87/Tech-O-Dex-API/blob/master/scripts/runapp.sh谢谢

linux windows bash carriage-return linefeed
1个回答
2
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.