indeed, we can interact with process with \n + flush the stream
but for commit command it's better to just select non interactive variant
also use option for non-interactive usage for add command