desktop / desktop

Focus on what matters instead of fighting with Git.
https://desktop.github.com
MIT License
19.71k stars 9.42k forks source link

Stash specific file/s or stash selected files #11531

Open MS-Painter opened 3 years ago

MS-Painter commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

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

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 commented 2 years ago

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

Mario-Seequent commented 2 years ago

+1

onurulgen commented 2 years ago

+1

patrickdenning commented 2 years ago

+1 would be great to have this

cockyb commented 1 year ago

+1

JeremiU commented 1 year ago

+1

leoidiaz commented 1 year ago

+1

massimoadriaens commented 1 year ago

+1

PlayCreatively commented 1 year ago

+1

louisoftokyo commented 1 year ago

This would be extremely useful.

yacoco00000 commented 1 year ago

Espèce de petits ratés qui ce cachent dernière leurs écran pour détruire la vie des gens honnêtes comme moi , une jeune femme qui est victime de CYBER-INTIMMIDATION

Téléchargez Outlook pour iOShttps://aka.ms/o0ukef


De : Louis @.> Envoyé : Monday, January 9, 2023 10:15:55 PM À : desktop/desktop @.> Cc : Subscribed @.***> Objet : Re: [desktop/desktop] Stash specific file/s (#11531)

This would be extremely useful.

— Reply to this email directly, view it on GitHubhttps://github.com/desktop/desktop/issues/11531#issuecomment-1376670394, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYY5WGTKL6QHYPHIG66ICODWRTH6XANCNFSM4XCXX4CA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

luisanton-io commented 1 year ago

+1

ufukseyithan commented 1 year ago

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

marlonjames71 commented 1 year ago

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

JorgePR-SF commented 1 year ago

@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 commented 1 year ago

I'd love this too!

austin-schaefer commented 1 year ago

Please, this would be a huge convenience!

griffinreding commented 1 year ago

PLEASE

Jaypee2109 commented 1 year ago

+1

gunnsth commented 1 year ago

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.

samuelko123 commented 1 year ago

@tidy-dev Would you mind reviewing the PR https://github.com/desktop/desktop/pull/16535? This feature would be a huge convenience.

Gabugueado commented 1 year ago

+1, great idea

Br1an-Boyle commented 1 year ago

+1

DaveRune commented 1 year ago

+1

k-babic commented 1 year ago

+1

OwenMagelssen commented 1 year ago

+1 this would make the desktop app more useful/capable

jbromberg commented 1 year ago

+1

suxscribe commented 1 year ago

Please

saikrishna-chunchu commented 1 year ago

+1

as111998 commented 1 year ago

me too

raulcostagomes commented 1 year ago

+1

alex-devin commented 1 year ago

+1

egorOztmz commented 1 year ago

+1

Indra-db commented 1 year ago

+1

Infinite-3D commented 1 year ago

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

BlackSparowYT commented 1 year ago

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

weakvar commented 1 year ago

+1

ngzaharias commented 1 year ago

+1

Gamba04 commented 1 year ago

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 commented 1 year ago

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 commented 11 months ago

+1

EricBatlleTripledot commented 11 months ago

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

daniestrella commented 11 months ago

+1

septynade commented 11 months ago

+1

0xdevalias commented 10 months ago

See also:

karamThebian commented 9 months ago

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 commented 9 months ago

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 commented 8 months ago

+1