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
You can run
git config --global branch.autosetuprebase always
to make git pull --rebase the default behaviour for git pull.
pull --rebase