git - 在 Windows 版 GitHub 的 bash 中安装 Git-Flow 时出错

标签 git github git-flow github-for-windows

我是 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/

相关文章:

git-flow:制作 "release candidates"/QA 网络 Artifact 的工作流程

git - 将 Gitflow 与 pull 请求一起使用的正确方法

git - Gerrit 重新创建更改 ID

git - Mercurial <--> git 备忘单?

git - '接收包' : service not enabled for './.git'

java - 将 GitHub 存储库文件导出到可用的 JAR 可执行文件,问题

git - 为什么 git pull 会导致我没有做的本地更改

git - 如何使用 textmate 查看 git diff

merge 上游时 Git commit 被压缩,我如何更新我的本地 repo

git - git branch工作流程政策