% git # checkout branch git checkout && git status $ branch: git branch -a --format='%(refname)' \ | cut -d' ' -f1 \ | sed -e 's#^refs/##' -e 's#^remotes/##' -e 's#^heads/##' \ | sort