Using IntelliJ IDEA to commit twice