How do you run stash in GitHub Desktop on Windows?
The feature is available in Sourcetree but I'm unable to find it in GitHub Desktop.
How do you run stash in GitHub Desktop on Windows?
The feature is available in Sourcetree but I'm unable to find it in GitHub Desktop.
GitHub Desktop for Windows doesn't support stash. The only stash-like feature it has is that it will allow you to switch branches if you have uncommited changes. Source
Update: GitHub Desktop V2.0.0 now supports stash (Issue 6107). Now when switching branches, you'll be prompted to either leave your changes on the current branch (stash) or bring your changes over to the other branch.
I realize this question is a bit old, and Andrew is correct, but I would like to point out that GitHub Desktop does at least provide a shortcut to a command prompt via Repository>Open in Command Prompt
which you can then use to execute git stash
through the traditional git CLI commands. Still, frustrating that GitHub Desktop doesn't provide a clean way to do this via their GUI, forcing you to fallback to git CLI tools for stashing.
UPDATE!: Github Desktop apparently updated and can now stash by switching to another branch with uncommitted changes. You will automatically be asked if you want to leave your changes on the current branch(stash) or bring them to the other branch:
Then when going back to the branch later, the you can restore from the stash, or discard them:
Now, with the Github Desktop 2.0 version, Rebase, and Stash features are available. More info can be found here
For those who are using Android Studio, no need for Github Desktop version in switching between branches, just switch from the Android Studio itself
select the branch you want to switch to > Rebase onto
PS: The Android Studio notify you with
Rebase failed
error (if you have created files in the branch you are on) and you will have to remove them by clicking onView themRetry
then select them all and delete with the red-
sign button, then do a Rebase onto again.
© 2022 - 2024 — McMap. All rights reserved.