Git
git-flow

git flow initコマンド prefixの消し方

More than 3 years have passed since last update.

git-flowコマンドで間違えてprefixを入力してしまって、まっさらな状態(Null)にしたい時のやり方が調べてすぐに出てこなかったので、こちらに記載しておきます。


初回導入時

$ git flow init

Branch name for production releases: [master]
Branch name for "next release" development: [develop]
Feature branches? [feature/]
Release branches? [release/]
Hotfix branches? [hotfix/]
Support branches? [support/]
Version tag prefix? [] v1

↑でversionミスったってなったとき

fオプションをつけて再度git-flow initコマンドを実行

$ git flow init -f

Branch name for production releases: [master]
Branch name for "next release" development: [develop]
Feature branches? [feature/]
Release branches? [release/]
Hotfix branches? [hotfix/]
Support branches? [support/]
Version tag prefix? [v1] -

-を入力するとprefixを削除してくれる