title: Restore files deleted from remote Git repo
body: <p>My colleague accidentally deleted most of the files from our remote repository while playing around with git. I have the latest commit on my local system, but when I try to push those files on to remote git repo, it throws an error saying that remote repo is ahead of the local one. Please pull to update the local repo before pushing. </p>
  
  <p>I made a copy of the entire folder locally (let's call it backup), just to be safe and then pulled from the remote. Of course, that deleted most of the files from my local repo as well. Next, I did <code>git reset --hard</code> to the last known commit and then tried to push this to the remote. I still get this error: </p>
  
  <p>`Your branch is behind 'origin/master' by 2 commits, and can be fast-forwarded.
    (use "git pull" to update your local branch)'</p>
  
  <p>I do not know how to fix this now? I can manually copy the files from my backup and then perhaps commit locally and then push. But is this the best way? Please help..</p>