Git Commands I’ve Found Helpful

Author: 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.

Branching

`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 website development company founded in 2009. Although we still focus on web development, we now offer digital marketing services, web design, local SEO services, ecommerce website design, and custom logo design

Our value proposition: Buink can help you unleash the power of the internet and help your business scale with superior quality code at a competitive price and in a transparent, honest way. 

Read more about Buink

Buink Web Development
Excellent
5.0
Based on 5 reviews
Dave G.
Dave G.
Buink is a great place to work, as well as a great place to have quality software written. I originally contracted Buink for some web development, and it worked out so well we began working together on many different projects. Definitely an honest transparent company that needs to be considered for your software needs.
Response from the owner: Thanks for the kind words Dave!
js_loader

Connect with Buink

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