The command used for passing on a message to a git commit is git commit -m “commit message”. The flag m is used to pass a commit message.