Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run stash 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.

like image 208
fatherazrael Avatar asked May 17 '17 03:05

fatherazrael


People also ask

How do I use stash on GitHub?

To apply your changes to your repository, you must save the files and then commit the changes to a branch. If you have saved changes that you are not ready to commit yet, you can stash the changes for later.

How do I open a git stash?

To pop Git stashes, simply use the “git stash pop” command and specify the stash index you want to pop.

How do I view a stash in GitHub?

Git Stash List. The Git stash list command will pull up a list of your repository's stashes. Git will display all of your stashes and a corresponding stash index. Now, if you wish to view the contents of a specific stash, you can run the Git stash show command followed by stash@ and the desired index.


1 Answers

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.

like image 112
Andrew Avatar answered Oct 03 '22 10:10

Andrew