I delete the local and remote branch like this:
git branch -D logout git push origin :logout but when I do:
git-get-branches this is alias that I have in .zshrc:
alias git-get-branches='git fetch; git branch -r | grep -v '\''\->'\'' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done' I still get:
Branch 'logout' set up to track remote branch 'logout' from 'origin'. Why does the logout branch always reappear even though I delete it on my computer and on remote origin?
git branch -ashow immediately after you rungit push origin :logout, then after you rungit fetch?