JKGitWrapper is a full wrapper that enables full communication with a Git repository.
Full example can be found below.
String url = "Remote Repository URL";
String userName = "UserName";
String password = "Password";
String localPath = "local-source-path";
JKGitWrapper gw = new JKGitWrapper();
gw.url(url).user(userName).password(password).localPath(localPath);
Git git = gw.cloneRepo();
JKIOUtil.createDirectory(gw.getLocalPath(), "dir1");
JKIOUtil.createDirectory(gw.getLocalPath(), "dir2");
JKIOUtil.createDirectory(gw.getLocalPath(), "dir2/dir2-1");
JKIOUtil.createDirectory(gw.getLocalPath(), "dir3");
JKIOUtil.writeDataToFile("Hello from uncle Jalal0", new File(gw.getLocalPath(), "dir1/test.txt"));
JKIOUtil.writeDataToFile("Hello from uncle Jalal1", new File(gw.getLocalPath(), "dir2/test.txt"));
JKIOUtil.writeDataToFile("Hello from uncle Jalal2", new File(gw.getLocalPath(), "dir2/dir2-1/test.txt"));
JKIOUtil.writeDataToFile("Hello from uncle Jalal3", new File(gw.getLocalPath(), "dir3/test.txt"));
gw.add(git);
gw.commit(git);
gw.push(git);