Start using Git
You shall put your source code under a version management system. The actual industrial standard is git, a distributed version control system - DVCS -.Install git on your development machine. If you are using IntelliJ IDEA configure git in the IDE through the preferences pane.