Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i stash without cleaning the working area?

Tags:

git

I want to save the state of my working area but not as a commit. Should I create a new branch, or is there a way to make a stash without cleaning the working area?

like image 962
Slart42 Avatar asked Oct 17 '25 06:10

Slart42


1 Answers

There's some way to ask stash to save and not remove changes from working tree... but this would work

git stash save "I'm saving"
git stash apply # apply stash, but don't remove it from list of stashes
like image 124
eftshift0 Avatar answered Oct 19 '25 22:10

eftshift0