Search code examples
gitgit-pull

How to provide comment to git pull merge message


my automation fails because git pull expects a reply (merge message). I saw I can use the --no-edit flag which is not recommended. Instead I would like to actually provide a message to it during the pull. Of course, if there is a conflict - to exit with failure.

How to do that ?


Solution

  • You can run :

    git pull --no-commit && git commit -m ...