I have a private online repository that I have been using for a little while. I would like to make it public now, however it holds confidential information. As I'm still relatively new to Git / Github, I'm not sure how to go about this as the way I understand is if I delete any of these files in the repository they will also be deleted locally on my next pull.
My current idea is to create a new branch and only push the files I actually want stored on the repository. Then make this new branch my new 'default' master branch and delete the old master branch.
Would this work? Are there any better alternatives?