nowfound

Dev tools · June 13, 2015

GB

Git-branches – list of branches with behind/ahead counts

git-branches is a go gettable command that displays branches with behind/ahead commit counts. If you've ever used GitHub, you'll notice their branches page displays this info. This is that, but for your local git repo, in the terminal. Go to any git repo you're working on and type: $ git branch feature/sanitized_anchor_name_context * master unfinished-attempt/alternative-sort-order wip/get-tweet-body Now, do `go get -u github.com/shurcooL/cmd/git-branches` on any machine with Go installed, and then: $ git-branches | Branch | Behind | Ahead |…

What it does

In the maker’s words, at launch

git-branches is a go gettable command that displays branches with behind/ahead commit counts. If you've ever used GitHub, you'll notice their branches page displays this info. This is that, but for your local git repo, in the terminal. Go to any git repo you're working on and type: $ git branch feature/sanitized_anchor_name_context * master unfinished-attempt/alternative-sort-order wip/get-tweet-body Now, do `go get -u github.com/shurcooL/cmd/git-branches` on any machine with Go installed, and then: $ git-branches | Branch | Behind | Ahead | |-------------------------------------------|-------:|:------| | feature/sanitized_anchor_name_context | 119 | 1 | | **master** | 0 | 0 | | unfinished-attempt/alternative-sort-order | 67 | 1 | | wip/get-tweet-body | 40 | 1 | It supports -base option if you want to compare against non-master branch. It also supports -remote mode, where it compares local branches to their remotes: $ git-branches -remote | Branch | Remote | Behind | Ahead | |-------------------------------------------|--------------------------------------------------|-------:|:------| | feature/sanitized_anchor_name_context | origin/feature/sanitized_anchor_name_context | 5 | 0 | | **master** | origin/master | 0 | 1 | | unfinished-attempt/alternative-sort-order | origin/unfinished-attempt/alternative-sort-order | 0 | 0 | | wip/get-tweet-body | | | | It's easy to see which branches are up to date with remote, which ones need to be pushed/pulled.

Does the same job

all alternatives →
  • GitSheet2019 · ▲319

    A dead simple Git cheat sheet.

  • Sourcetree2019 · ▲137

    Simplicity and power in a beautiful Git GUI

  • Git Explorer2019 · ▲225

    Find git commands you need without digging through the web.

  • Learn Git Branching2022 · ▲225

    The most visual and interactive way to learn Git on the web

  • GitUp2015 · ▲275

    The Git interface you've been missing all your life

  • GitBarApr 2026 · ▲126

    Every pull request, one menubar. GitHub, GitLab & Azure

More dev tools this month

the category →
  • Dograh592

    The open source VAPI alternative

    Dev tools · 25d ago · dograh.com

  • Meridian530

    Don't let your work go unnoticed. Get promoted!

    Dev tools · 20d ago · meridiona.com

  • x1516

    Lovable for iPhone apps go from idea to App Store

    Dev tools · 11d ago · x1.new

  • Open-source GTM skills for technical founders

    Dev tools · 29d ago · gtmcofounder.com

  • OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.

    Dev tools · 1d ago · opentrailpaper.com

  • Nuphos380

    The AI-Native DevOps Workspace.

    Dev tools · 24d ago · nuphos.ai

Launched alongside, June 2015

the whole month →
  • A​rticles you need to read before launching a startup.

    Growth · 2015 · startuplaunchlist.com

  • Get any site's company logo with just a URL

    Dev tools · 2015 · clearbit.com

  • The best new games, every day

    Life & fun · 2015

  • Coverr584

    Beautiful, free videos for your homepage background.

    Work · 2015

  • SLIDE561

    A hoverboard by Lexus (no joke)

    Life & fun · 2015

  • The Best Landing Page Inspiration

    Work · 2015