0

I need to do updates on the staged files list using the jgit libraries.

There is a method with jgit that can change the list of staged files (to remove some files from staging area to unstaged)?

Thanks.

georgiana_e
  • 1,809
  • 10
  • 35
  • 54
  • Does this answer your question? [How can I use JGit to add deleted files to the index?](https://stackoverflow.com/questions/32876426/how-can-i-use-jgit-to-add-deleted-files-to-the-index) – Rüdiger Herrmann Sep 20 '21 at 14:08
  • No, I actually want to remove the files from index. – georgiana_e Sep 20 '21 at 14:14
  • 1
    This command works: git.reset().setMode(ResetType.MIXED).call(); (from https://stackoverflow.com/questions/4803462/jgit-java-git-library-unstaging-files) – georgiana_e Sep 20 '21 at 14:21
  • This command: git.reset().setMode(ResetType.MIXED).call(); , It use to Remove all files from staging area? If I want just remove on file from staging area, How should I do it? – Rosand Liu Dec 27 '21 at 06:46

0 Answers0