How many / how long are stashes saved by git?

后端 未结 2 389
生来不讨喜
生来不讨喜 2020-12-05 07:30

I\'m very new to git and have some question about stashing. If I\'ve worked on a branch but was not able to get to a position where I can commit the branch, stashing is the

2条回答
  •  再見小時候
    2020-12-05 08:31

    Git stashes are saved until your hard disk dies (unlike commits, which are usually transmitted to some other computer via git push so will outlive a hard disk failure).

    You can have as many stashes as you want. Get rid of old ones when you feel like it by running git stash drop or git stash clear (read the docs for those).

提交回复
热议问题