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
When you have uncommitted changes, you can do,
git stash git pull --rebase git stash pop