Solution | Github | 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
2833
Please enter a commit message to explain why this merge is necessary,especially if it merges an updated upstream into a topic branch

Please enter a commit message

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)

1- How to solve this:

2- Press “i” on your keyboard.

3- Write your merge message

4- Press “esc” button

5- Type “:wq”

6- Press Enter

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
Terminal – Mac

Tags: Please enter a commit message, 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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.