Search code examples
gitgit-stash

Is there a maximum number of git stashes?


Is there a maximum number of git stashes, or can you have as many as you like?

I'm aware that

git stash list

doesn't list as many results as

git stash list --date=local

But does Linus Torvalds think that anyone with more than x stashes is an idiot who deserves to lose the old stashes?


Solution

  • There is no hard limit to stashes. Stashes are simply implemented using the reflog of a specially-named ref called stash.