how to get a summary of all tracked branches in git

When I check out a tracking branch in git, it tells me:

“Your branch is ahead of ‘origin/foo’ by 1 commit”

  • How to store my password and login for my remote repository?
  • Installing PhoneGap getting “error not found: git”
  • Using path wildcards in git log
  • How to use mercurial or git subrepositories that are connected to the latest release tag?
  • What does diff --staged compare against staged file to in git?
  • Change node pm2 git remote url for deployed project
  • Is there a way to output this for all my branches that track a remote, eg:

    “foo is ahead of ‘origin/foo’ by 1 commit”
    “bar is ahead of ‘origin/bar’ by 2 commits”

  • Setting up Git on Network and the copying to website
  • using git send-mail with google 2-factor authentication
  • Filename too long in git for windows
  • Git: How to overwrite local change?
  • What is the difference between `git diff topic1 topic2 ^master` and `git diff topic1..topic2 ^master`?
  • difference between 'git svn rebase' and 'git rebase trunk'
  • One Solution collect form web for “how to get a summary of all tracked branches in git”

    Try this: git branch -v

    It should list all of your branches including whether they are ahead or behind.

    Git Baby is a git and github fan, let's start git clone.