我是 Git 的新手,最初是使用 GitHub for Windows。 现在我已经学会了如何打开 Git bash....并想在其中安装 Git Flow。
我正在尝试按照此处的步骤操作:- https://github.com/nvie/gitflow/wiki/Windows
在安装期间,当我尝试使用我的 PortableGit 文件夹路径运行 msysgit-install 脚本时,脚本失败并显示:-
contrib/msysgit-install.cmd: line 1: @echo: command not found
contrib/msysgit-install.cmd: line 2: setlocal: command not found
等...
是我做错了什么,还是我的 bash 设置不正确?
我通过右键单击 GitHub for Windows 中的项目并选择“在此处打开一个 shell”来访问 bash。
请帮忙。
最佳答案
msysgit-install.cmd
脚本是一个 windows 批处理文件,不要从 bash 运行它从 windows 命令提示符运行它(或者从文件浏览器双击它,但我不是确定这是否适用于 .cmd
文件...)
此外,请尝试改用 Cygwin。它要简单得多。
关于git - 在 Windows 版 GitHub 的 bash 中安装 Git-Flow 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20600160/