Top 35 Git Commands With Examples

If you are a new or experienced developer, you have to use source control. And good chances are you are using Git to manage your source code. 

And to use Git to its full potential, you need to know Git commands. Here you will learn the most helpful Git commands that will take you from one level to another. 

Git Reset HEAD

Recently, I published a detailed guide about Git reset HEAD. In case you need a downloadable pdf copy, you can get it here.

In this Git HEAD guide, I will explain all about the basics. You will learn about the detached head and how you can reset it with a few simple git commands.

Working Out When Something Broke Using Git Bisect and Git Log

On Feb, 5 I attended DDD North. There were many excellent talks, but, in this post, I'm delving into something that I saw in one of the grok talks (I gave one myself). It concerns a feature of git that I'd never heard about until then, and it's proved to be enormously useful. This post is, as all of my posts are, really for myself.

You're giving the app a quick test, and suddenly you realize that something in the application has stopped working (or maybe it's started, but it shouldn't have). You remember that two days ago, this particular thing was working fine. This post is going to cover manually using git bisect to determine when your code was broken.