title: Synchronizing a local Git repository with a remote one
body: <p>I want to synchronize my local repository with a remote one so that my local repository becomes a 100% copy of the remote one - meaning that if certain files differ in these repositories, we override the local ones with the remote ones, and if there are files in local repositories that do not exist in the remote, the local files get removed.</p>
  
  <p>Is there any way to achieve that other than by doing a fresh clone of remote repository?  </p>
  
  <p>Similar question as <a href="https://stackoverflow.com/questions/23334925/sync-local-git-repo-with-remote-in-one-shot-discarding-local-changes-commits">Sync local git repo with remote in one shot discarding local changes/commits</a>.</p>