git config --global --add branch.autosetuprebase always
What's this? https://www.kernel.org/pub/software/scm/git/docs/git-config.html search for 'autosetuprebase'
git for-each-ref refs/heads --format='%(refname:short)' | \
while read branch; do