Move `gitignore` to `gitignore_global` and add `$JAVA_HOME`.