title: With PM2, how can I update / deploy the code if the git branch has been force pushed?
body: <p>Starting with PM2 here.</p>
  
  <p>Context:
  While we don't allow <em>production</em> or <em>staging</em> branches history to be modified (to be force pushed), we do allow it for <em>dev</em> or <em>feature</em> branches so that the commits can be squashed before review and moved to production.</p>
  
  <p>But PM2 is trying to pull and so fails in that case. Is it possible to have PM2 fetch remote and then overwrite instead of trying to pull and apply changes?</p>
  
  <p>As a side note: a few platforms such as Netlify, or Heroku, allow code to be force pushed and deploy. I'd like to reproduce it with PM2.</p>