phpstormのGit操作【差分をpushするまで】

やりたい事

ターミナルでコマンドを打たずにphpstormのGUIだけでgithubに差分をpushする。

下準備(お好みで)

通常の状態だとlocalでのdiffがGitウィンドウに表示されないので、修正する。

修正前 Gitウィンドウにはローカルのdiffは表示されずに別のモーダル表示になっている。

Image from Gyazo 修正後

Image from Gyazo

参考サイト

手順

  1. 上のタブの「phpstorm」→「preferences」を開く
  2. 「バージョン管理」→「コミット」を開く
  3. 「非モーダルのコミットインターフェースを使用する」のチェックを外す

これにてOKです。

Gitを操作してpushする

「ローカルの変更」からコミット画面にいく

変更する差分をGitウィンドウから確認して問題なければ、画像の赤枠を押します。

Image from Gyazo

コミットモーダルでコミット情報を入れる

先程の赤枠を押すとコミットモーダルが現れます。

Image from Gyazo

この画面でコミットするファイルの選択、コミットメッセージを決めます。

終わったら右下のコミットボタンでコミット出来ます。 選択肢に「コミット&プッシュ」があるので、それを押せばpush完了です。

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
  • Attributes
  • Custom attributes
  • Custom fields
Click outside to hide the compare bar
Compare
Compare ×
Let's Compare! Continue shopping