title: How can I cleanup my git repo and structure it properly without loosing any content
body: <p>I came across a situation, where I already have a remote repository with master branch and some feature branch and have some of my commits pushed to remote as well, now locally also I have created some more branch but changes to these local branches are not pushed to remote.</p>
  
  <p>Now due to some requirement, I need to restructure my repo and I need to keep my master clean with just readme and then move all the commits in master branch to another branch, as well as preserve my local commits and branches, so that I can push them after these clean-up. </p>
  
  <p>I am not sure, How can I do this without loosing data.</p>