I have a repo on GitHub with a single branch master
that I've been working on in my local repo. At some point I stopped pushing commits back up to master on GitHub because I was worried that they'd break things. Now I have lots of commits in my local repo that I want to push back up to GitHub.
However, rather than pushing back up to master I would prefer to create a new branch on GitHub (development
) and push all my local commits back up to that branch (which I will merge back into master only after they've been better tested).
What is the simple way to do this?