LoginSignup
8
3

More than 5 years have passed since last update.

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

Posted at

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を削除してくれる

8
3
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
8
3