I have a repository and some local changes to commit. Before committing, I pulled the changes onto my local using Egit in Eclipse.
It creates a merge commit and I submit
Use rebase option whenever you pull from remote repository. Please follow the below steps,
git pull --rebase
.