LoginSignup
5
7

More than 5 years have passed since last update.

(windows7) git-flowをgit bashで使用する設定

Posted at

windows環境にて、git bashgit-flowを使用する設定を行った。

1.git-flowをクローン

git bashで以下のように操作。

$ git clone http://github.com/nvie/gitflow.git

2..gitmodulesの編集

クローンしてきたファイルを以下のように修正。

gitflow/.gitmodules
[submodule "shFlags"]
        path = shFlags
        url = http://github.com/nvie/shFlags.git

3.サブモジュールを取得

gitflow直下に移動して、以下のように操作。

$ cd gitflow
$ git submodule init
$ git submodule update

4.コマンドプロンプトでgit-flowのインストーラを実行

以下全て、コマンドプロンプトでの操作。

コマンドプロンプトを管理者として実行したのちクローンしてきた
以下の例のようにgitflowディレクトリに移動して以下のコマンドを実行。

C:\Users\user\Desktop\gitflow>contrib\msysgit-install.cmd "C:\Program Files (x86)\Git"

以上でgit bashgit-flowを使用することができる。

参考

git-flowのインストールとブランチ運用前のリポジトリ準備

5
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
7