execute(session, "git --git-dir test add readme.txt");
execute(session, "git --git-dir test commit -m \"readme\"");
client.stop();
sshd.stop();
}
private void execute(ClientSession session, String command) throws Exception {
ChannelExec channel = session.createExecChannel(command);
channel.setOut(System.out);