git flow是git的一个扩展集,它基于Vincent Driessen 的分支模型,能够用来简化代码的版本号公布流程。

本文讲述怎样为msysgit安装git flow。

下载getopt.exe

getopt.exe的下载链接:http://downloads.sourceforge.net/gnuwin32/util-linux-ng-2.14.1-bin.zip

解压。进入bin文件夹,复制当中的getopt.exe文件到你的git安装文件夹。比如,D:\Program Files (x86)\Git\bin

下载libintl3.dll

libintl3.dll下载链接:http://gnuwin32.sourceforge.net/downlinks/libintl-bin-zip.php

解压,进入bin文件夹,复制libintl3.dll文件到你的git安装文件夹。

下载libiconv2.dll

libiconv2.dll下载链接:http://gnuwin32.sourceforge.net/downlinks/libiconv-bin-zip.php

解压,进入bin文件夹,复制libiconv2.dll文件到你的git安装文件夹。

获取git flow的代码

打开git bash。输入下面命令:

git clone –recursive git://github.com/nvie/gitflow.git
cd gitflow

执行git flow的安装脚本

打开windows的cmd(可能须要管理员权限),进入上面的git flow代码文件夹。键入下面命令:

cd contrib
msysgit-install.cmd [git的安装文件夹]

比如。

msysgit-install.cmd “D:\Program Files (x86)\Git”

耐心等待执行完成。

验证安装

打开git bash。输入

git flow

假设显示下面
验证git flow安装成功
说明安装成功。

參考资料

  1. https://github.com/nvie/gitflow/wiki/Windows
  2. http://danielkummer.github.io/git-flow-cheatsheet/index.zh_CN.html
  3. http://blog.csdn.net/ccf0703/article/details/7603603
posted on 2017-06-28 08:37  yutingliuyl  阅读(309)  评论(0编辑  收藏  举报