title: How can I copy the content of a branch to a new local branch?
body: <p>I have worked on a local branch and also pushed the changes to remote.</p>
  <p>I want to revert the changes on that branch and do something else on it, but I don't want to lose the work completely. I was thinking of something like create a new branch locally and copy the old branch there, then I can revert the changes and continue working on the old branch.</p>
  <p>Is there a better way than this maybe?</p>