Show Table of Contents
2.3.8. リポジトリーの更新
Git リポジトリーのローカルコピーを更新して、リモートのリポジトリーからの最新の変更を取得するには、シェルプロンプトでローカルの Git リポジトリーのあるディレクトリーに移動して、以下を入力します。
git fetch remote_repository
remote_repository は、リモートのリポジトリー名に置き換えます。このコマンドにより、リモートリポジトリーの現在のステータスに関する情報が取得され、ローカルコピーに変更を加える前に、変更内容を確認することができます。ローカルの Git リポジトリーにある変更のマージを続行するには、以下を入力します。
git merge remote_repository
または、以下のコマンドを使用して、これらの両ステップを同時に実行します。
git pull remote_repository
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.