魔法使いの卵

WEBエンジニアの卵の成長記録

PhpStorm9でgit-flowの操作をする

macにgitflowを入れて準備する

  • git-flowをインストールする -brew install git-flow

    • Warning: git-flow-0.4.1 already installed, it's just not linked
    • インストールはしてるけどお前リンク貼ってないでって怒られた。
  • リンクを貼ってあげる

    • brew link git-flow
    • Linking /usr/local/Cellar/git-flow/0.4.1... Error: Permission denied
    • /usr/local/etc/bash_completion.d
  • 権限がねーよって怒られた

    • 権限を変える ※$USERはMacに登録しているユーザ名
    • sudo chown -R $USER:admin /usr/local
  • 再度リンクを貼り直す

    • brew link git-flow
    • Linking /usr/local/Cellar/git-flow/0.4.1... 3 symlinks created
  • gitと同じところに持ってくる

    • sudo ln -s /usr/local/Cellar/git-flow/0.4.1/bin/git-flow /usr/bin

Phpstorm側でgit-flowを使えるようにする

  • Preferences >> Plugins >> Browse Repositories >> Git Flow Integrationをインストールして再起動

GUIで操作するには?

  • 内部Terminalでgit flow initで各ブランチを生成する
  • Phpstormの右下にGitflowっていうのができているので、ここでブランチを作る

参考元:

エラー対応:Error: Gitflow is not installed | mawatari.jp