gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 14:27:15 24 4
gpt4 key购买 nike

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

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com