Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
319 views
in Technique[技术] by (71.8m points)

Is git stash stack pushed to the remote repo?

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.

question from:https://stackoverflow.com/questions/23952575/is-git-stash-stack-pushed-to-the-remote-repo

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...