I have master and new-project branches. And now I\'d like to create a brand new repo with its master based on the new-project branch.
Not sure whether this is a good way, but it's easy anyway:
git clone -b new-project git@github.com:User/YourProject.git newProjcet
Then create a new repo on github, and push it.