jgit version 4.6.0 , java 1.8 , windows 10
I have written a java program to push to a git repository where as I want to push specific files at a time instead of pushing all files.
git.add.addFilePattern(".").call();
works fine.
but
git.add.addFilePattern("D:\\myGitRepo\\files\\file1.txt").call();
is not working.
"myGitRepo" folder contains the .git folder.