作者:一路博客
來源:http://www.16boke.com/series/detail/git/146
# Git安裝
這是地址:https://git-for-windows.github.io/,如果沒有安裝的,可以看看本系統的教程。
# git flow安裝介紹
這是地址:https://github.com/nvie/gitflow/wiki/Windows ,gitflow在github上的倉庫,基本寫的不詳細
# 安裝說明
Download and install getopt.exe from the util-linux package into C:\\Program Files\\Git\\bin. (Only getopt.exe, the others util-linux files are not used). Also install libintl3.dll and libiconv2.dll from the Dependencies packages (libintl and libiconv), into the same directory.
說明:把連結裡面的3個文件對應的二進位文件下載後,分別解壓複製出對應的東西即可。
即複製getopt.exe、libint13.dll、libiconv2.dll到Git目錄的bin下面
Clone the git-flow sources from GitHub:
$ git clone --recursive git://github.com/nvie/gitflow.git
說明:
我是在Git安裝目錄下,執行clone操作的,完成後會多出一個gitflow文件夾。
# 執行cmd (打開Windows的cmd窗口執行)
Run the msysgit-install script from a command-line prompt (you may have to run it with "Full Administrator" rights if you installed msysgit with its installer, and ensure you're running from a Windows command prompt, not MINGW):
C:\\Program Files (x86)\\Git\\gitflow> contrib\\msysgit-install.cmd
安裝失敗:
註:提示失敗找不到Git安裝目錄,需要改成如下:
C:\\Program Files (x86)\\Git\\gitflow> contrib\\msysgit-install.cmd "C:\\Program Files (x86)\\Git"
安裝成功:
完成後,可以在git bash運行 git flow help查看
# 初始化
執行 git flow init,基本都一直回車就行
例如: