git branch -d the_local_branch
git push origin :the_remote_branch
git push origin --delete the_remote_branch
git branch | grep -v "master" | xargs git branch -D
https://dangitgit.com/?ref=devawesome.io
For reference: https://koukia.ca/how-to-remove-local-untracked-files-from-the-current-git-branch-571c6ce9b6b1
git clean -n
git clean -f
git rm -r --cached .
Where file is the name of the file you want to ignore
git update-index --assume-unchanged <file>
git update-index --no-assume-unchanged <file>
git config --global -l
https://gist.github.com/ajdruff/16427061a41ca8c08c05992a6c74f59e
Essentially:
git config --global core.eol lf
rm .git/index
git reset
Error: Your github oauth token for github.com contains invalid characters
Fix:
Fix reference: https://nono.ma/github-oauth-token-for-github-com-contains-invalid-characters-on-composer-install