Git Commands I’ve Found Helpful

Author: Ben B. Ben B | 1/9/16

I’m creating this page mostly for me. I often find myself needing a git command I used one time a while back. The trouble with Git is it’s really hard to find a lot of the nuanced commands and there isn’t much written about them. When I find a command helpful, I’m going to record it here and attempt to describe when I’ve used it. I’ll start with one and add over time.


`git branch -rd origin/[branch name]`

We don’t clean up branches like we should! I’m including myself in this. Sometimes I’ll get on a new project, clone the repo, and type `git branch -v` to list all the branches and I get a 10 page list! That is where this command comes in. If you try to delete a local branch (`git branch -d origin/somebranch`) it won’t work. That is where the -r comes it. Use it to delete a local remote tracking branch that is cluttering up you branch list command.

About The Author

Ben currently works as a senior developer and technical business consultant outside of Boulder, Colorado.

More about this author

About Buink

Buink Web Development is a development shop founded in 2009 by Ben Buie. For years, Ben built and modified web assets for clients in Utah. In 2011, he moved the company to Colorado and in 2015 he started taking on new clients full-time.

Buink’s Core Values:

  • Cost effective technology (with business strategy in mind)
  • Eloquent, maintainable code
  • Responsive and transparent communication
  • Quick project turn-around
  • Less code, less bugs
  • Start with responsive styles

Read more about Buink’s core values

Read more about Buink

Connect with Buink

Connect with Buink via email, send us a message, or subscribe to our blog.