简体   繁体   中英

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 ?

你可以运行:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM