Skip to content

Stash specific file/s or stash selected files #11531

Open

Description

@ms-nc

Describe the feature or problem you’d like to solve

Currently, stashing uncommited changes in files can be done be in the Branch tab.

This only allows stashing all changed files.

Would be really handy to allow selecting which files to stash.

Cases like bringing changes with you to a different branch,

but only needing some changes, come to mind.

Proposed solution

When compared to available capabilities to discard changes.

You can also selectively discard changes on specific files.

image

My idea is to add another option in the context menu to stash
(Text being something along the line of Stash changes).

Allowing stashing of single/multiple changed files.

Behind the scenes would probably apply the command

git stash push [FILE PATH] [...ADDITIONAL FILE PATHS...]

Visual representation wise,

there is currently the popped up footer with the stashed changes,
which could simply add to it files if any more files are selectively stashed.

With the same functionality to restore or discard everything in the stash.

image

Activity

  1. the21st commented on Jun 1, 2021

    @the21st

    It would be great if we could stash not only the selected files, but only the selected chunks/lines inside those files, since this partial selection is already available for committing.

    Thanks!

  2. Bradyirv commented on Aug 24, 2022

    @Bradyirv

    Not nearly enough love on this Feature, please implement this!

    • Stash specific files by toggling them, added to the right click context menu.

    Creating a new branch and then bringing the changes with you would be so nice with this feature. (No commit necessary for experimental code changes that you want to move to a safer branch)

  3. NickSantini32 commented on Aug 29, 2022

    @NickSantini32

    +1 For this. Im a long time user of GitHub desktop and this really becomes useful when trying to move branches around.

  4. Mario-Seequent commented on Sep 14, 2022

    @Mario-Seequent

    +1

  5. patrickdenning commented on Sep 29, 2022

    @patrickdenning

    +1 would be great to have this

  6. cockyb commented on Nov 4, 2022

    @cockyb

    +1

  7. JeremiU commented on Nov 19, 2022

    @JeremiU

    +1

  8. leoidiaz commented on Dec 6, 2022

    @leoidiaz

    +1

  9. massimoadriaens commented on Dec 15, 2022

    @massimoadriaens

    +1

  10. PlayCreatively commented on Dec 15, 2022

    @PlayCreatively

    +1

  11. louisoftokyo commented on Jan 10, 2023

    @louisoftokyo

    This would be extremely useful.

  12. yacoco00000 commented on Jan 10, 2023

    @yacoco00000
  13. luisanton-io commented on Jan 26, 2023

    @luisanton-io

    +1

  14. ufukseyithan commented on Feb 1, 2023

    @ufukseyithan

    Hilarious that this is still yet to be implemented. This is some old tech, guys. Come on now.

  15. 78 remaining items

  16. 0xdevalias commented on Oct 3, 2025

    @0xdevalias

    @NickSantini32 @Mario-Seequent @onurulgen @patrickdenning @cockyb @JeremiU @leoidiaz @massimoadriaens @PlayCreatively @louisoftokyo @luisanton-io @ufukseyithan @marlonjames71 @JorgePR-SF @rustypaul @austin-schaefer @griffinreding @Jaypee2109 @Gabugueado @Br1an-Boyle @DaveRune @k-babic @OwenMagelssen @jbromberg @suxscribe @saikrishna-chunchu @as111998 @raulcostagomes @alex-devin @egorOztmz @Indra-db @weakvar @ngzaharias @railanxisto @daniestrella @septynade @zeff9801 @FarbodNejati @Dr-Usman @BekirK-C @ChrisJamesonGroves @Adrienne12464Sweden @AkashWellSky @sebagnz @edoardosartori @luisanton-io @prashasti-k @lucedes27 @BrandowLucas @judexgauss @ouijahija @CodeSteel @travis-tap-3d @kerminal @asaadreh-nyra @snddude @ifm-anowaczek @Randomystic @h4nkyn @oskar-codes @DavenMauff , anyone else who did it prior, and anyone else thinking of doing it in the future: Can we please not spam issues with +1, it's considered rude and noisy. It doesn't contribute to the issue, but it does needlessly ping everyone subscribed to it. If you want to show support for the issue getting fixed, click the 👍🏻 on the original post instead.

    This was already pointed out previously here, yet people continue to do it.

    Further reading:

  17. griffinreding commented on Oct 3, 2025

    @griffinreding
  18. pol-rivero commented on Dec 17, 2025

    @pol-rivero
    Contributor

    This feature was implemented a while ago in my fork: pol-rivero/github-desktop-plus.
    Additionally, we now support multiple stashes per branch.

  19. Gamba04 commented on Dec 18, 2025

    @Gamba04

    This feature was implemented a while ago in my fork: pol-rivero/github-desktop-plus. Additionally, we now support multiple stashes per branch.

    I never knew this existed! I just installed it and will be trying it out moving forward. Thank you for making this :)

  20. marlonjames71 commented on Dec 18, 2025

    @marlonjames71

    Moved on to using Fork. Has everything you'd want and/or need.

  21. marked Select Which Files to Stash #21701 as a duplicate of this issue on Mar 3, 2026
  22. griffinreding commented on May 21, 2026

    @griffinreding

    Any updates on what's the most widely requested feature now that we're 5+ years after the initial request?

  23. Gamba04 commented on May 22, 2026

    @Gamba04

    Any updates on what's the most widely requested feature now that we're 5+ years after the initial request?

    Honestly I really recommend @pol-rivero's fork mentioned earlier. I've used it since and it works great!

  24. IJFleet commented on Oct 28, 2026

    @IJFleet

    Other Git UI's do this and have been able to do this for a long time. It is really inconvenient to have to just stash all when you only want to stash some.

  25. jorisw commented on Oct 28, 2026

    @jorisw

    The ineptitude of the Desktop client's team leadership really shines here.

    As others have said, go for the Plus fork.

  26. griffinreding commented on Oct 28, 2026

    @griffinreding

    It's the most requested feature by far for years now, they still refuse to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementnot-plannedpitch

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions