このページでは

変更をステージする

変更をステージしてコミットすることで、リモートリポジトリにプッシュしたり Gerrit に送ってレビューしてもらうことができます。

ファイルステータスの表示

デフォルトでは、Qt Creatorプロジェクトファイルシステムドキュメントを開いているビューにファイルステータスが表示されます。ステータスは10秒ごとに自動的に更新されます。

ファイルステータスの更新頻度をカスタマイズするには、次の手順に従います:

  1. Preferences >Version Control >General にアクセスします。
  2. Show VCS file status with refresh interval が選択されていることを確認します。
  3. Qt Creator が Git にファイル・ステータスの更新を要求する間隔(秒)を設定します。

現在のファイルをステージする

新規ファイルや変更したファイルをリポジトリにコミットするには、次のいずれかの方法でファイルをステージします:

  • Tools >Git >Current File と進み、Stage <file> for Commit を選択します。
  • プロジェクトまたはファイルシステムでファイルを右クリックし、Git >Stage を選択します。
  • Tools >Git >Local Repository >Commit に移動し、Files でファイルを右クリックして、Stage を選択します。

現在のファイルのステージを解除する

ステージされた変更から現在のファイルを削除するには、以下のいずれかの方法でステージを解除する:

  • Tools >Git >Current File に移動し、Unstage <file> from Commit を選択します。
  • プロジェクトまたはファイルシステムでファイルを右クリックし、Git >Unstage を選択します。
  • Tools >Git >Local Repository >Commit に移動し、Files でファイルを右クリックして、Unstage を選択する。

チャンクまたは行をステージする

Git Diffビューでは、コミットの変更を塊ごとあるいは行ごとにステージすることができます。

How to:Gitの使い方と Gitの使い方も参照ください。

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.