Explain the usage of stash changes and unstash changes of git in idea

Time:2021-1-13

1. First pull the code from GIT.
We did some code editing locally.

这里写图片描述

The new method is shown in the red box
2. Use git‘s stash changes function, as shown in the figure below

这里写图片描述

3. Check the changes in the local code, and you can see that your new method is gone, and you are back to the latest state of pulling down from GIT

在这里插入图片描述

4. Check the unstash changes function of GIT

这里写图片描述

Click View in the figure above to compare the codes. Click Apply stash to restore the stash code to the local

在这里插入图片描述

This article about the detailed explanation of the usage of GIT stash changes and unstash changes in idea is introduced here. For more information about the usage of GIT stash changes and unstash changes, please search previous articles of developer or continue to browse the following related articles. I hope you can support developer more in the future!