Git - temporarily save current work

后端 未结 2 1974
萌比男神i
萌比男神i 2021-01-05 23:01

I\'m adding a feature on master branch. After changing several files, I realize that I need to check the output without my changes.

The way I can think of is:

<
2条回答
  •  旧时难觅i
    2021-01-05 23:14

    You can simply use git stash, which will store away your change to the local working tree. Then do your things, and when you're done, git stash pop to get things back. See the documentation about stashing.

提交回复
热议问题