Multiple Domains

Git Apprentice

Learn the basics of Git, how to set up your own repos, as well as how to deal with remote syncing. By Chris Belanger & Bhagat Singh.

Read for Free with the Personal Plan* * Includes this and all other books in our online library See all benefits
Buy Individually $59.99* *Includes access to all of our online reading features.

5 (1) · 1 Review

Download materials
Buy paperback—Amazon Comments
Save for later
Share

Who is this for?

This book is for anyone who would like to leverage the power of version control with Git in their software development process.

Covered concepts

  • Setting up repos
  • Staging
  • Syncing
  • Merging
Learn Git!

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

more

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.

Section I: Beginning Git

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.

1
Toggle description
Learn how to get started with Git, the differences between platforms, and a quick overview of the typical Git workflow.
2
Toggle description
It’s quite common to start by creating a copy of somebody else's repository. Discover how to clone a remote repo to your local machine, and what constitutes "forking" a repository.
3
Toggle description
A Git repo is made up of a sequence of commits—each representing the state of your code at a point in time. Discover how to create these commits to track the changes you make in your code.
Toggle description
Before you can create a Git commit, you have to use the “add” command. What does it do? Discover how to use the staging area to great effect through the interactive git add command.
Toggle description
Sometimes, there are things that you really don’t want to store in your source code repository.
Toggle description
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.
Toggle description
The real power in Git comes from its branching and merging model. This allows you to work on multiple things simultaneously. Discover how to manage branches, and exactly what they are in this chapter.
Toggle description
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.
Toggle description
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.
Toggle description
If you are starting a new project, and want to use Git for source control, you first need to create a new repository.

Section II: Appendices