Git & 配信 コア B · 公式のガイダンス プラットフォーム: 一般

Git Stash

Git スタッシュ

Git Stashは、選択された未コミットの作業ツリーやインデックスの変更を一時的に保存します。保存されたセットはスタックを形成し、後で復元できます。

仕組みを見る
そう呼ぶかもしれません Git Stash変更を隠す変更を退避する

仕組みを見る

元の作業例Git スタッシュ

もう一つの例

開発者は、まだ終わっていない実験にラベルを付け、追跡されているファイルと必要な追跡されていないファイルをstashします。緊急の問題を直してから、元のブランチでstashをapplyします。

主な部分

  1. 01Branch or change set
  2. 02Review and verification gate
  3. 03Released result

以下の場合に使用します

一時的なコミットや作業ツリーが過剰になる場合の短いタスク切り替えに使用します。

以下の場合は使用しないでください

stash を長期保存として使用せず、追跡されていないファイルを忘れ、無関係なブランチに適用せず、リモートバックアップを期待しないでください。

コードで使用する名前

git stash push/list/show/apply/drop

出荷前に

Before publishing, check the exact repository, branch, target, and diff. Keep unpublished work. Pass review and CI checks. Record conflict and data-loss risks, release order, traceability, recovery, and rollback.

コピーできるリクエスト

Outcome:Complete the task with Git スタッシュ (Git Stash)。 User context:開発者は、まだ終わっていない実験にラベルを付け、追跡されているファイルと必要な追跡されていないファイルをstashします。緊急の問題を直してから、元のブランチでstashをapplyします。 Delivery concept or operation:Git スタッシュ (Git Stash)。 Why it fits:一時的なコミットや作業ツリーが過剰になる場合の短いタスク切り替えに使用します。 Do not use it when:stash を長期保存として使用せず、追跡されていないファイルを忘れ、無関係なブランチに適用せず、リモートバックアップを期待しないでください。 Delivery requirements: Name the code repository and target. List preconditions, changes, review and CI checks, conflict and data-loss risks, release order, and the rollback or recovery command. Repository safeguards: Keep unpublished work and a clear history. Do not run destructive steps without an explicit backup. Check the exact code diff and remote target before publishing. Acceptance criteria: Review the intended diff and pass all required checks. Keep the target version traceable. Practice failure recovery and keep published history clear. Evidence and limits (evidence boundary):その情報源にとって公式です。他のプラットフォームやチームはその用語を別の方法で使用する場合があります。 Unknowns to confirm: Repository, branch, team activity, release environment, approval owner, protected checks, and rollback target.

このリクエストを確認する

Review how Git スタッシュ (Git Stash) is used now. Definition: Git Stashは、選択された未コミットの作業ツリーやインデックスの変更を一時的に保存します。保存されたセットはスタックを形成し、後で復元できます。 Release checks: Before publishing, check the exact repository, branch, target, and diff. Keep unpublished work. Pass review and CI checks. Record conflict and data-loss risks, release order, traceability, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.

B
この用語はどれくらい公式か?

公式のガイダンス

指定されたプラットフォーム、フレームワーク、プロジェクト、または専門グループには、この用語に関する公式ガイドがあります。

その情報源にとって公式です。他のプラットフォームやチームはその用語を別の方法で使用する場合があります。

範囲
ソースがカバーするもののみ:正式名、定義、プラットフォームAPI、実装、使用ガイド
ドキュメントステータス
安定
チェックオン
2026-07-30

証拠の情報源と範囲

権威のある情報源 · Git · 安定 git-stash 範囲: 正式名、定義、プラットフォームAPI、実装、使用ガイド ここでの役割: 指定された範囲内の権威 ソースの範囲: 正式名, 定義, プラットフォームAPI, 実装, 使用ガイド

自分でコピーする

ブラウザはこれをコピーできませんでした。下のリクエストを選択して自分でコピーしてください。