Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stash specific file/s or stash selected files #11531

Open
MS-Painter opened this issue Feb 4, 2021 · 62 comments · May be fixed by #16535
Open

Stash specific file/s or stash selected files #11531

MS-Painter opened this issue Feb 4, 2021 · 62 comments · May be fixed by #16535

Comments

@MS-Painter
Copy link

MS-Painter commented Feb 4, 2021

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

@the21st
Copy link

the21st commented Jun 1, 2021

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!

@Bradyirv
Copy link

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)

@NickSantini32
Copy link

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

@Mario-Seequent
Copy link

+1

1 similar comment
@onurulgen
Copy link

+1

@patrickdenning
Copy link

patrickdenning commented Sep 29, 2022

+1 would be great to have this

@cockyb
Copy link

cockyb commented Nov 4, 2022

+1

4 similar comments
@JeremiU
Copy link

JeremiU commented Nov 19, 2022

+1

@leoidiaz
Copy link

leoidiaz commented Dec 6, 2022

+1

@massimoadriaens
Copy link

+1

@PlayCreatively
Copy link

+1

@louisoftokyo
Copy link

This would be extremely useful.

@yacoco00000
Copy link

yacoco00000 commented Jan 10, 2023 via email

@luisanton-io
Copy link

+1

@ufukseyithan
Copy link

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

@marlonjames71
Copy link

This is a must. Please implement this. The ability to stage specific lines and chunks as well. Thanks.

@JorgePR-SF
Copy link

@steveward Is there any news about this issue? Would be nice to have the ability to do this in the app instead of having to use the command line for this.

@rustypaul
Copy link

I'd love this too!

@austin-schaefer
Copy link

Please, this would be a huge convenience!

@MS-Painter MS-Painter linked a pull request Apr 15, 2023 that will close this issue
@griffinreding
Copy link

PLEASE

@Jaypee2109
Copy link

+1

@gunnsth
Copy link

gunnsth commented May 5, 2023

Seems like GitHub Desktop is not really getting much attention. Haven't seen anything new for ages. Would make sense to have a way to see/manage stashes.

@tidy-dev tidy-dev changed the title Stash specific file/s Stash specific file/s or stash selected files May 12, 2023
@samuelko123
Copy link
Contributor

@tidy-dev Would you mind reviewing the PR #16535?
This feature would be a huge convenience.

@Infinite-3D
Copy link

Any updates on this feature getting added? It's been 2 years...

@BlackSparowYT
Copy link

i wish it was here already but they really dont care about github desktop :(

@weakvar
Copy link

weakvar commented Sep 15, 2023

+1

1 similar comment
@ngzaharias
Copy link

+1

@Gamba04
Copy link

Gamba04 commented Sep 27, 2023

This is the only feature I reeeeally feel I need on Github Desktop, it would be even better if you could create multiple stashes with custom names. This really helps when dealing with a lot of changes and you want to test out stuff by temporarily reverting some changes or sorting out tricky situations when dealing with multiple branches.

I really can't stress enough how good this would be...

@egvijayanand
Copy link

egvijayanand commented Oct 13, 2023

Kindly incorporate this partial stash feature, this is how work is done in the real world and not all files are stashed always.

Include a button to stash the files selected, that would address this need.

@railanxisto
Copy link

+1

@EricBatlleTripledot
Copy link

EricBatlleTripledot commented Nov 13, 2023

How is the state of this feature? do we have an ETA or something?

@daniestrella
Copy link

+1

1 similar comment
@septynade
Copy link

+1

@karamThebian
Copy link

We need the feature to stash Selected Changes only, would make it way more easier to stash some files, and bring the rest with you to another branch.

@RaeHousr
Copy link

RaeHousr commented Jan 8, 2024

Is this feature still actively being developed or has it been lost in the tide of backlog, because I would love this to be a feature.

@zeff9801
Copy link

+1

@MashedPutato
Copy link

come on, do this already!

@Dr-Usman
Copy link

+1
Please add to stash selected files in github desktop atleast.

@BekirK-C
Copy link

BekirK-C commented Mar 5, 2024

+1

@ChrisJamesonGroves
Copy link

+1
Definitely need to be able to stash selected files, and ideally multiple stashes

@Adrienne12464Sweden
Copy link

Adrienne12464Sweden commented Mar 11, 2024 via email

@AkashWellSky
Copy link

+1

1 similar comment
@sebagnz
Copy link

sebagnz commented Mar 21, 2024

+1

@jorisw
Copy link

jorisw commented Mar 26, 2024

Instead of adding a '+1' comment (please stop doing that. Instead use the reaction buttons on the OP), I will offer a workaround:

  • Commit the changes you don't want to stash
  • Hit Stash (Cmd-shift-S on Mac)
  • Undo the commit using the Undo button in the bottom of the side panel

Still this should definitely already been added. How hard can it be to limit the stash action to the files selected via their checkboxes.

@griffinreding
Copy link

Instead of adding a '+1' comment (please stop doing that. Instead use the reaction buttons on the OP), I will offer a workaround:

  • Commit the changes you don't want to stash
  • Hit Stash (Cmd-shift-S on Mac)
  • Undo the commit using the Undo button in the bottom of the side panel

Still this should definitely already been added. How hard can it be to limit the stash action to the files selected via their checkboxes.

-1

@edoardosartori
Copy link

+1

@luisanton-io
Copy link

Instead of adding a '+1' comment (please stop doing that. Instead use the reaction buttons on the OP), I will offer a workaround:

  • Commit the changes you don't want to stash
  • Hit Stash (Cmd-shift-S on Mac)
  • Undo the commit using the Undo button in the bottom of the side panel

Still this should definitely already been added. How hard can it be to limit the stash action to the files selected via their checkboxes.

-1

@Andrej730
Copy link

Related feature - it also would be nice if there will be an option to discard specific files / chunks from stash instead of discarding the stash entirely. Current workaround is to (commit current changes), restore, discard and stash again, (undo last commit).

image

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

Successfully merging a pull request may close this issue.