おれのメモ帳_φ(-ω-`*)メモメモ

Windows msysgit 環境に Git-flow を入れた

以下を参考にして、Windows の msysgit 環境に git-flow を入れた。

まず util-linux-ng for Windows から Binaries の Zip と Dependencies の Zip をダウンロードして解凍。

Binaries/bin から getopt.exe を、Dependencies/bin から libintl3.dll を取り出して、Gitのインストールディレクトリ/bin に入れる(libintl3.dll は wget を入れるときに入れてた)。

自分は PortableGit 環境なので、以下な感じのとこに入れた。

C:\Users\username\Dropbox\Tools\Develop\Git\bin\

その後、適当なフォルダで以下を実行(GitBashで実行)。

$ git clone --recursive git://github.com/nvie/gitflow.git
Cloning into 'gitflow'...
remote: Counting objects: 1407, done.
remote: Compressing objects: 100% (591/591), done.
rRemote: Total 1407 (delta 886), reused 1300 (delta 801)
Receiving objects: 100% (1407/1407), 367.08 KiB | 294 KiB/s, done.
Resolving deltas: 100% (886/886), done.
Submodule 'shFlags' (git://github.com/nvie/shFlags.git) registered for path 'shFlags'
Cloning into 'shFlags'...
remote: Counting objects: 454, done.
remote: Compressing objects: 100% (56/56), done.
Receiving objects:  66% (300/454), 60remote: Total 454 (delta 389), reused 453 (delta 388)
Receiving objects: 100% (454/454), 101.23 KiB | 103 KiB/s, done.
Resolving deltas: 100% (389/389), done.
Submodule path 'shFlags': checked out '2fb06af13de884e9680f14a00c82e52a67c867f1'


次にコマンドプロンプト(管理者権限)で、cloneしたフォルダに移動して以下を実行。

D:\Repos\gitflow> contrib\msysgit-install.cmd "C:\Users\username\Dropbox\Tools\Develop\Git"
Installing gitflow into "C:\Users\username\Dropbox\Tools\Develop\Git"...
getopt.exe... Found
Copying files...
D:\Repos\gitflow\git-flow -> C:\Users\username\Dropbox\Tools\Develop\Git\bin\git-flow
1 個のファイルをコピーしました
D:\Repos\gitflow\git-flow -> C:\Users\username\Dropbox\Tools\Develop\Git\bin\git-flow
D:\Repos\gitflow\git-flow-feature -> C:\Users\username\Dropbox\Tools\Develop\Git\bin\git-flow-feature
D:\Repos\gitflow\git-flow-hotfix -> C:\Users\username\Dropbox\Tools\Develop\Git\bin\git-flow-hotfix
D:\Repos\gitflow\git-flow-init -> C:\Users\username\Dropbox\Tools\Develop\Git\bin\git-flow-init
D:\Repos\gitflow\git-flow-release -> C:\Users\username\Dropbox\Tools\Develop\Git\bin\git-flow-release
D:\Repos\gitflow\git-flow-support -> C:\Users\username\Dropbox\Tools\Develop\Git\bin\git-flow-support
D:\Repos\gitflow\git-flow-version -> C:\Users\username\Dropbox\Tools\Develop\Git\bin\git-flow-version
7 個のファイルをコピーしました
D:\Repos\gitflow\gitflow-common -> C:\Users\username\Dropbox\Tools\Develop\Git\bin\gitflow-common
D:\Repos\gitflow\gitflow-shFlags -> C:\Users\username\Dropbox\Tools\Develop\Git\bin\gitflow-shFlags
2 個のファイルをコピーしました
D:\Repos\gitflow\shFlags\src\shflags -> C:\Users\username\Dropbox\Tools\Develop\Git\bin\gitflow-shFlags
1 個のファイルをコピーしました


完了。

$ git flow
usage: git flow <subcommand>

Available subcommands are:
   init      Initialize a new git repo with support for the branching model.
   feature   Manage your feature branches.
   release   Manage your release branches.
   hotfix    Manage your hotfix branches.
   support   Manage your support branches.
   version   Shows version information.

Try 'git flow <subcommand> help' for details.