安装 GitFlow 时遇到问题

Having Trouble Installing GitFlow

我在安装 gitflow 时遇到问题。我正在使用本教程:https://xinyustudio.wordpress.com/2012/03/26/installing-git-flow-in-windows/

我卡在了第 3 步

当我 运行 git clone git://github.com/nvie/gitflow.git -–recursive 我得到了这个结果:

Cloning into 'gitflow'...
remote: Counting objects: 1407, done.
emote: Total 1407 (delta 0), reused 0 (delta 0), pack-reused 1407
Receiving objects: 100% (1407/1407), 623.34 KiB | 0 bytes/s, done.
Resolving deltas: 100% (689/689), done.
Checking connectivity... done.
error: unable to create file contrib/msysgit-install.cmd (Permission denied)
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

我也在网站上的评论中查找了一些答案,但找不到答案。

我有答案

运行 代码 C:\Program Files (x86)\Git\binC:\Program Files\Git\bin 供您进入目录 /usr/bin,然后 运行 代码 git clone git://github.com/nvie/gitflow.git -–recursive

如果还是不行,请尝试 运行ning git bash 作为管理员。 (右击桌面bash图标,点击Run as Administrator)