commit.setMessage(message);
RevCommit revCommit = commit.call();
if (!StringUtils.isEmpty(tagName) && !StringUtils.isEmpty(tagMessage)) {
// tag the commit
TagCommand tagCommand = git.tag();
tagCommand.setName(tagName);
tagCommand.setMessage(tagMessage);
tagCommand.setForceUpdate(true);
tagCommand.setObjectId(revCommit);
tagCommand.call();