title: Git: How to check if new files have been added to the remote repository, but not in local
body: <p>The situation is the following:
  I created a remote repository so I can work with it from two different places with different machines.</p>
  
  <p>Every time I work from a location generally I don't modify the old files, but I just add new files to the repository (I'm studying Java, so I'm adding all the exercises that I do in that repository).</p>
  
  <p>I know that with <code>git pull</code> I get the newer version of the remote repository, but if I use <code>git diff</code> it says that there are no differences, even if in the remote repository I added new files from the other location.</p>
  
  <p>Before pulling I would check if new files have been pushed to the remote repository. Is there a command that shows not only the differences on existing files, but also the new files pushed to the remote repository?</p>
  
  <p>Thanks in advance.</p>