Knowledge Base
Search
New article
Authentication is disabled (development mode).
Edit article
Title
Tags
Content
<p><a href="https://stackoverflow.com/questions/7773939/show-git-ahead-and-behind-info-for-all-branches-including-remotes">stackoverflow</a></p><pre><code class="language-bash">git for-each-ref --format="%(refname:short) %(upstream:track) %(upstream:remotename)" refs/heads</code></pre>
Save
Cancel