git check for unpushed branches Edit Delete ahead behind branch check git push pushed remote status stackoverflowgit for-each-ref --format="%(refname:short) %(upstream:track) %(upstream:remotename)" refs/heads