title: Preserve local changes to redo after git pull?
body: <p>My mistake was to overwrite commits on my local repository that were already on my remote. I have like 3 commits that are not yet pushed to remote. Is there a way I can preserve these changes, so that when I do git pull, I can parse the commits and go back to normal?</p>
  
  <p>I'd need the commands step by step because I'm afraid of doing something wrong.</p>