$ git status
$ git add 'fileName'
$ git commit -m "commit message"
$ git push origin main
Clear all branches except for master locally
git branch | grep -v "master" | xargs git branch -D
$ git status
$ git add 'fileName'
$ git commit -m "commit message"
$ git push origin main
Clear all branches except for master locally
git branch | grep -v "master" | xargs git branch -D