Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Merging two branches on Github

Tags:

merge

github

I'm new to Github and I have a branch that I want to merge with the master. I couldn't merge it via git command line, its very complicated. I tried to merge it on Github site following below documentation:

Merging a pull request on GitHub

But I got the following message:

There isn’t anything to compare!

Here's the project:

https://github.com/SumayahAlharbi/erecords

What does 4 commits behind master mean?

Update

Please check below pictures:

I thought I did the merging successfully but nothing changes! enter image description here enter image description here

like image 927
Learner Avatar asked Feb 15 '26 03:02

Learner


1 Answers

What does 4 commits behind master mean?

  • It means that the master branch has 4 commits which are not present in your branch currently. You need to rebase your branch and then create a New Pull Request which will be needed to be reviewed and finally approved so that your branch can be merged with the master.

There isn’t anything to compare!

  • Check the difference between the master and your branch. Click the Compare icon in Git hub or run this command from your local branch in Git Bash : git diff --name-only master_branch.
like image 95
Nicholas Kurian Avatar answered Feb 17 '26 19:02

Nicholas Kurian