I created a new Rails app and pushed the code to Github directly from master (first commit in the repository). However I made a mistake, I didn't want to commit this new Rails app directly from master, but instead create a new branch from master and push the new Rails app from this new branch.
Therefore, I'd like to:
- Delete the commit from master in Github(remote), so master is EMPTY
- create a new branch from master and add the previous commit that was in master into this new branch.
- push it to Github.