LoginSignup
6
6

More than 5 years have passed since last update.

WindowsにGit-flow入れてみようとしたら出たエラーを解決

Posted at

なんかエラーになりおるので直して導入

WindowsでGitだと、mySys git + tortoiseGitが導入しやすそうなので、その環境でGit-flowを入れてみました。

Google先生に聞いて最初に下記のサイトが出ますが、

これの通りだと、git bashで

git flow init

してもエラーになります。

なので、git-core.zipの中身のファイル(git-flow~とか)をgit-coreの下ではなく、libexecの下に置くか、

git-flowってファイルの下記の記述を、

export GITFLOW_DIR=$(dirname "$0")

下のように

export GITFLOW_DIR=$(dirname "$0")
if [ ! -e "${GITFLOW_DIR}/git-flow-init" ]; then
  export GITFLOW_DIR=${GITFLOW_DIR}/git-core
fi

と書き換えると動きました。

6
6
1

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
6
6