Solution |Github/Gitlab | Please enter a commit message to explain why this merge is necessary,especially if it merges an updated upstream into a topic branch | Error Message

0
384
Please enter a commit message to explain why this merge is necessary,especially if it merges an updated upstream into a topic branch

When trying to push a commit into Github via terminal we come across this problem:

“Please enter a commit message to explain why this merge is necessary,especially if it merges an updated upstream into a topic branch | Error Message”

This happens when a commit was made to the branch you are working with an you try to push a commit (git push) before pulling the changes (git pull)

How to solve this:

  1. Press “i” on your keyboard.
  2. Write your merge message
  3. Press “esc” button
  4. Type “:wq”
  5. Press Enter
  6. Finally, Push Changes “git push”

Please enter a commit message to explain why this merge is necessary,especially if it merges an updated upstream into a topic branch

LEAVE A REPLY

Please enter your comment!
Please enter your name here