git checkout --orphan some-branch git commit -m "First commit" git branch -f master # move the local branch git checkout master git branch -d some-branch # delete the temp branch