Using EGit with Eclipse when I try to push my code into the remote repository I get an error message saying that I should pull first, as shown in Figure [1](https://i.stack.imgur.com/dDag0.png).

![Error dialog when trying to push](https://i.stack.imgur.com/dDag0.png)

When I then try to pull from the remote repository I get a message saying that everything is up to date, as shown in Figure [2](https://i.stack.imgur.com/LM6xE.png).

![Message dialog after pulling](https://i.stack.imgur.com/LM6xE.png)

How do I fix this problem?