Skip to content

Instantly share code, notes, and snippets.

@jioo
Last active October 30, 2025 05:18
Show Gist options
  • Select an option

  • Save jioo/eebe4c39d800baf99c0db703ded4842c to your computer and use it in GitHub Desktop.

Select an option

Save jioo/eebe4c39d800baf99c0db703ded4842c to your computer and use it in GitHub Desktop.

Revisions

  1. jioo revised this gist Feb 5, 2021. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions share-git-stash.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    Stash current changes
    - git > Stash > Stash (Include Untracked)

    Create stash as patch
    ```bash
    git stash show "stash@{0}" -p > changes.patch
  2. jioo revised this gist Feb 13, 2020. No changes.
  3. jioo revised this gist Feb 13, 2020. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion share-git-stash.md
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,9 @@
    Create stash as patch
    ```bash
    git stash show "stash@{0}" -p > changes.patch
    git apply changes.patch
    ```

    Apply patch
    ```bash
    git apply changes.patch
    ```
  4. jioo created this gist Feb 13, 2020.
    2 changes: 2 additions & 0 deletions share-git-stash.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    git stash show "stash@{0}" -p > changes.patch
    git apply changes.patch