commitToBranch method
Implementation
Future<void> commitToBranch({
required String contentDirFullPath,
required String branch,
required String commitMsg,
}) async {
final gitDir = await GitDir.fromExisting(
path.current,
allowSubdirectory: true,
);
await gitDir.updateBranchWithDirectoryContents(
branch,
contentDirFullPath,
commitMsg,
);
}