git clean -f -d
git clean -f -x -d
CAUTION: as above, but cleans untracked and ignored files through the entire repo (without :/, the operation affects only the current directory)
git clean -fxd :/
git branch | grep -v "develop" | grep -v "master" | grep -v "main" | xargs git branch -D
git reset --hard
git fetch origin git reset --hard origin/master
git commit -a -m "Saving my work, just in case" git branch my-saved-work