Chances are that if you are involved in software development you have heard of and 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 and also suitable for the most complex tasks with version control. Even experienced Git users hit the barriers on how to deal with common situations.
Git Apprentice is here to help! This book is the easiest and fastest way to experiment with using Git for version control of your projects.
Who is this book for?
This book is for anyone who wants to leverage the power of version control with Git in the process of developing its software. The book begins with a gentle introduction to Git. He then goes on to guide you in creating a new repository, cloning an existing repository, merging changes and all the parts in between.
Topics covered in Git Apprentice
- Git crash course: Learn how to get started with Git, platform differences, and a quick overview of Git’s typical workflow.
- Repository Cloning: Find out how to replicate a remote repository to your local computer, and what constitutes a “fork” repository.
- Git Log & History: You will discover the versatility of the git log command – displaying branches, graphs and even filtering history.
- Creating a repository: If you are starting a new project, and you want to use Git for source control, you must first create a new repository.
- And more!
One thing you can count on: after reading this book, you will be well prepared to use Git in the process of developing your own software!
Before you start
This section tells you some things you need to know before you start, such as what you will need for hardware and software, where to find the project files for this book and more.
Section A: Beginning of Git
This section is intended to get new entrants 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 commitment, merger and attraction.
You may find things in this section that you did not quite understand about Git, even if you have used Git for a long time.
Learn how to get started with Git, the differences between platforms, and a quick overview of Git’s typical workflow.
It is quite common to start by making a copy of someone else’s database. Find out how to duplicate a remote repository to your local computer, and what constitutes a “fork” repository.
Git’s repo consists of a sequence of commits – each representing your code status at a point in time. Learn how to create these commitments to track the changes you make to your code.
Before you can create a Git commit, you must use the “Add” command. what does it do? Discover how to use the deployment area in a great way using the interactive git add command.
Sometimes, there are things you really do not want to store in your source code repository.
There is no point in creating a nice history of your source code if you can not research it. You will discover the versatility of the git log command – displaying branches, graphs and even filtering history.
The real power in Git comes from its ramified model and merger. It allows you to work on several things at once. Find out how to run branches, and what exactly they are in this chapter.
Branches in Git without air conditioning will be like basketball without the hoop – fun, sure, but with very little flavor. In this chapter you will learn how you can use merging to combine work on multiple branches back into one.
You worked hard on your local copy of the Git repository, and now you want to share it with your friends. See how you can share using remotes, and how you can use multiple remotes at once.
If you are starting a new project, and you want to use Git for source control, you must first create a new repository.