git --no-pager branch
# new branch without any commit
git checkout --orphan branchNameHere
# delete all files
git rm -rf .
# commit without any file
git commit --allow-empty -m "init commit of branchNameHere branch"
# go back to master
git checkout master
# delete branch locally
git branch -d localBranchName
# delete branch remotely
git push origin --delete remoteBranchName
git reset --hard HEAD~1