I cannot get reset to work correctly in JGit. I.e. I can add all files to the index, and I can remove / reset / disconnect some of them from the index using the command below, but it does not work for all files. What is the proper way to disable files in JGit?
repository.getIndex().remove(getWorkignDirectoryAsFile(), new File(getWorkignDirectoryAsFile(), fileName)); repository.getIndex().write();
Also
Coder source share