Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Merge branch 'master'

Tags:

git

merge

Beginner: I was trying to do "pull" before a "push" of my new file to GitHub as system asked. When I typed git push it showed me:

Merge branch 'master' of https://github.com/Wordworth/Test2
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
~                                                                               
-- INSERT --

What to do with this? the goal is to push my file after commit to GitHub repo which already exists with the same name is local one. Any hints?

like image 700
beginner Avatar asked Dec 01 '25 04:12

beginner


1 Answers

This is normal behavior. It's merging the remote contents with your local contents. Save this commit message, and the pull will complete. Then issue your push.

git pull does two things behind the scenes - first, a fetch to pull all the contents from the remote repo, then a merge of the remote contents of the current branch with your local contents.

That file you're seeing is a suggested message for the commit of the merge results.

like image 84
Don Branson Avatar answered Dec 02 '25 18:12

Don Branson