20 tips for mastering Git and GitHub

The programming world's favorite distributed version control system also lets you find, share, and improve code. Here's how to make Git and GitHub work better for you

Become An Insider

Sign up now and get FREE access to hundreds of Insider articles, guides, reviews, interviews, blogs, and other premium content. Learn more.

While there are dozens of get-started guides for Git, and GitHub offers a number of guides of its own, it’s still not easy to find a collection of useful tips for developers who want to work smarter with Git and GitHub. Let’s fix that.

For those of you who are unfamiliar with Git or GitHub, the next few paragraphs will give you enough background to understand the tips. We’ll list about a dozen useful resources at the end of this article.

Git is a distributed version control system, originally written by Linus Torvalds in 2005 for and with help from the Linux kernel community. I’m not here to sell you on Git, so I’ll spare you the spiel about how fast and small and flexible and popular it is, but you should know that when you clone a Git repository (“repo,” for short), you get the entire version history on your own computer, not just a snapshot from one branch at one time.

Git started as a command-line tool, befitting its origin in the Linux kernel community. You can still use the Git command line, if you like, but you don’t have to. In particular, if you use GitHub as your host, you can use the free GitHub client on Windows or Mac. On the other hand, the Git command line will work for any host, and it comes pre-installed on most Mac and Linux systems.

To continue reading this article register now