Git
Git
Delete branch
git branch -d <branch>
git push -d <remote> <branch>
Create an empty branch
git checkout --orphan <branch>
git reset --hard
Clear the working directory
git rm --cached -rf .
git branch -d <branch>
git push -d <remote> <branch>
git checkout --orphan <branch>
git reset --hard
git rm --cached -rf .