title: How do I synchronize an existing local directory and an existing remote git repo?
body: <p>I have a local directory and a remote git repository. Both contain the same files. However, the local directory is not yet connected to the remote repo. How can I connect them? The commands I have tried so far did not work because the local directory is not empty.</p>
  
  <p>Not sure if this makes a difference but the local folder and the remote repo do not have the same names.</p>