无法安装GitFlow

时间:2015-04-30 14:14:37

标签: git github git-flow

我在安装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'

我也查看了网站上的评论,但我无法找到答案。

1 个答案:

答案 0 :(得分:1)

我得到了答案

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

如果它仍然无法正常工作,请尝试以管理员身份运行git bash。 (右键单击桌面上的bash图标,然后单击Run as Administrator