27 essential tips for Git and GitHub users


While Git users have dozens of get-started guides to choose from, and 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 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 Desktop 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.