window下安裝git flow

來源:互聯網
上載者:User

標籤:

輕鬆4步搞定哦! 原文檔地址: https://github.com/nvie/gitflow/wiki/Windows。  ===================================================================前置條件:電腦已經安裝了git(附件中有安裝包) Step1: 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.說明:下載util-linux-ng-2.14.1-bin包(可見附件),把該包中util-linux-ng-2.14.1-bin\bin目錄裡的getopt.exe, libintl3.dll 和  libiconv2.dll,這3個檔案放到你git的安裝目錄中的bin目錄下。   Step2:

Clone the git-flow sources from GitHub:

$ git clone --recursive git://github.com/nvie/gitflow.git$ cd gitflow
說明:
然後執行以上命令,下載源碼,並且cd到gitflow目錄下。
Step3:

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:\gitflow> contrib\msysgit-install.cmd
說明:
然後使用cmd命令,cd到剛下載下來的gitfow的contrib目錄下,執行msysgit-install.cmd命令,注意要管理員權限,(報錯後悔有提示,後面跟上git的安裝路徑名)

Step4:

In Git bash create a symbolic link for git-flow so that you can actually use the $ git flowcommand from any location.

$ ln -s /C/gitflow/git-flow git-flow
說明:把上面的/C/gitflow/路徑替換成真實的下載下來的gitflow的路徑

至此已經完成安裝, 你可以使用git flow的命令試試啦,如下就是正常的init資訊
(git使用文檔:http://danielkummer.github.io/git-flow-cheatsheet/index.zh_CN.html)
 $ git flow init
Which branch should be used for bringing forth production releases?
   - 3.24banner
   - dayloan
   - dev
   - fix1.5.0
   - fix1.5.0_5
   - fix_issue_74
   - master
   - release1.2
Branch name for production releases: [master]

Which branch should be used for integration of the "next release"?
   - 3.24banner
   - dayloan
   - dev
   - fix1.5.0
   - fix1.5.0_5
   - fix_issue_74
   - release1.2
Branch name for "next release" development: [master] dev

How to name your supporting branch prefixes?
Feature branches? [feature/]
Release branches? [release/]
Hotfix branches? [hotfix/]
Support branches? [support/]
Version tag prefix? []

 

window下安裝git flow

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.