Is git stash stack pushed to the remote repo?

前端 未结 2 2021
深忆病人
深忆病人 2020-12-28 12:57

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 t

2条回答
  •  爱一瞬间的悲伤
    2020-12-28 13:21

    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.

提交回复
热议问题