Solved
STM32Cube IDE 1.4.0 Device configuration tool deletes the project.
When I use .ioc file to generate the codes, it delete the entire project folder (include git information). Looks like I lose all the commits I haven't pushed to github. WTH is that.
