也许这很尴尬,但是当我在 Git shell 中工作时,我无法在 Windows 上运行 .sh 文件。也许我必须安装一些东西,但我认为 Git 会支持 bash 命令(我知道 Windows 不使用 sh 文件)。
我正在执行安装步骤游戏结束 http://docs.gameclosure.com/guide/install.html之后$ ./install.sh
出现一个窗口,其中包含用于打开 sh 文件的应用程序选择(就像当您尝试在 Windows 中打开未知文件时,它会询问您想使用什么应用程序来打开该文件)。
我尝试用 Git shell 打开它,但失败了......我必须做什么才能运行这个文件并继续执行 GameClosure 教程中的安装步骤?**
Here is a screenshot (alert in polish, but I think you all know this message).
尝试使用git-bash
可用msysgit https://code.google.com/p/msysgit/,与Git Bash.vbs https://github.com/msysgit/msysgit/blob/master/share/WinGit/Git%20Bash.vbs捷径。
Msysgit也打包了 https://stackoverflow.com/q/11928561/6309 within 适用于 Windows 的 GitHub http://windows.github.com/,尽管暴露的 shell 是 Powershell https://stackoverflow.com/questions/16757393/what-is-the-difference-between-git-bash-and-the-github-for-windows-shell/16757442#16757442一个基于posh-git https://github.com/dahlbyk/posh-git。那(powershell)可以解释为什么*.sh
脚本无法在其上运行。
The 奥普·索尔斯基 https://stackoverflow.com/users/1030134/szorstki提及在评论中 https://stackoverflow.com/questions/16772202/how-to-run-script-sh-in-windows-git-shell/16772497#comment24165618_16772497实际上,Windows 应用程序的 GitHub 中有一个设置,可以将 Git Bash 设置为默认命令行工具。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)