Is git stash stack pushed to the remote repo?

Dunno picture Dunno · May 30, 2014 · Viewed 15.8k times · Source

Is my stash stack pushed to the remote repo? Or is it completely ignored?

I'm just curious if I should tend to it every once in a while to drop some of it to save space on the server.

Answer

bcmcfc picture bcmcfc · May 30, 2014

No. Stashes are local.

$ man git stash:

Use git stash when you want to record the current state of the working directory and the index, but want to go back to a clean working directory. The command saves your local modifications away reverts the working directory to match the HEAD commit.

I wouldn't keep too many of them around locally though. You'll lose track of them over time and they'll become somewhat useless.