When I did git pull today, I found that all the locally modified code was overwritten.
Solution:
Class to be restored -> Right-click -> Local History-> Show History-> Right-click the version to be restored -> Revert
But there are too many files, and it is very troublesome to restore them one by one. I asked my colleagues and recorded the solution.
- Right click-》git-》repository-》stash Changes
- Give the content to be saved a name
- Update code from GitHub
- Right click-》git-》repository-》UnStash Changes
- Then click Apply Stash