Quantcast
Channel: How can I see which Git branches are tracking which remote / upstream branch? - Stack Overflow
Viewing all articles
Browse latest Browse all 13

Answer by Aurélien for How can I see which Git branches are tracking which remote / upstream branch?

$
0
0
git for-each-ref --format='%(refname:short) <- %(upstream:short)' refs/heads

will show a line for each local branch. A tracking branch will look like:

master <- origin/master

A non-tracking one will look like:

test <- 

Viewing all articles
Browse latest Browse all 13

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>