Chances are if you’re involved with software development you’ve heard of and have used Git at some point in your life. Version control systems are critical for any successful collaborative software project. Git is both simple to start using and accommodating for the most complex tasks with version control. Even seasoned Git users hit roadblocks on how to handle common situations.
Git Apprentice is here to help! This book is the easiest and fastest way to get hands-on experience with using Git for version control of your projects.
Who This Book Is For
This book is for anyone who would like to leverage the power of version control with Git in their software development process. The book starts with a gentle introduction to Git. It then moves on to walk you through creating a new repository, cloning an existing one, merging in changes, and all of the bits in between.
Topics Covered in Git Apprentice
A Crash Course in Git: Learn how to get started with Git, the differences between platforms, and a quick overview of the typical Git workflow.
Cloning a Repo: Discover how to clone a remote repo to your local machine, and what constitutes “forking” a repository.
Git Log & History: You’ll discover the versatility of the git log command—displaying branches, graphs and even filtering the history.
Creating a Repository: If you are starting a new project, and want to use Git for source control, you first need to create a new repository.
One thing you can count on: after reading this book, you’ll be well-prepared to use Git in your own software development workflow!
Before You Begin
This section tells you a few things you need to know before you get started, such as what you’ll need for hardware and software, where to find the project files for this book, and more.
This section is intended to get newcomers familiar with Git. It will introduce the basic concepts that are central to Git, how Git differs from other version control systems, and the basic operations of Git like committing, merging, and pulling.
You may discover things in this section you didn’t quite understand about Git, even if you’ve used Git for a long time.
There’s very little point in creating a nice history of your source code if you can’t explore it. You’ll discover the versatility of the git log command—displaying branches, graphs and even filtering the history.
Branches in Git without merging would be like basketball without the hoop—fun, sure, but with very little point. In this chapter you’ll learn how you can use merging to combine the work on multiple branches back into one.
You’ve been working hard on your local copy of the Git repository, and now you want to share this with your friends. See how you can share through using remotes, and how you can use multiple remotes at the same time.