Writing a git commit message
Git commit messages
Context: You’ve merged a branch to master/main and you get this message. See original stackoverflow question for more context:
Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic branch.
You try typing a message or hitting enter or escaping and nothing happens. This is not an error message. Git is using your default editor. Here’s what to do:
- press “i” (i for insert)
- write your merge message
- press “esc” (escape)
- write “:wq” (write & quite)
- then press enter