Home / IOS Development / Git apprentice | raywenderlich.com

Git apprentice | raywenderlich.com



Learn Git!

Chances are 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 to any successful collaborative project. Git is both easy to start using and meet the most complex tasks with version control. Even experienced Git users hit roadblocks for how to handle common situations.

Git Apprenticec is here to help! This book is the easiest and fastest way to gain hands-on experience using Git for version control of your projects.

Who this book is for

This book is for anyone who wants to harness the power of version control with Git in the software development process. The book begins with a mild introduction, and then moves on to more complicated scenarios, including merger conflicts, rebasing and more.

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 an external repo to your local machine, and what constitutes “forking”
    ; a repository.
  • Git Log & History: You will discover the versatility of the git log command – view branches, graphs and even filter history.
  • Create a repository: If you are starting a new project and want to use Git for source control, you must first create a new archive.
  • And more!

One thing you can trust: after reading this book, you will be well prepared to use Git in your own software development workflow!

Section I: Beginning Git

This first part is meant to introduce newcomers to 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 such as committing, merging and subtracting.

You may discover things in this section that you did not fully understand about Git, even though you have been using Git for a long time.

In particular, you will cover:

  1. Crash Course in Git: Learn how to get started with Git, the differences between platforms and a quick overview of the typical Git workflow.

  2. Cloning of a repo: It is quite common to start by making a copy of someone else’s stock. Discover how to clone an external repo to your local machine, and what constitutes “forking” a repository.

  3. Commit to your changes: A Git repo consists of a sequence of commitments – each representing the state of your code at some point. Discover how to create these commitments to track the changes you make to your code.

  4. The staging area: Before you can create a Git commitment, you must use the “add” command. What does it do? Discover how to use the layout area with great effect through the interactive command git add.

  5. Ignore files in Git: Sometimes there are things you really do not want to save in the source code.

  6. Git Log & History: There is very little point in making a nice story with the source code if you can not explore it. You will discover the versatility of the git log command – view branches, graphs and even filter history.

  7. Branching: The real power of Git comes from its branching and merging model. This allows you to work on several things at once. Discover how to manage branches and exactly what they are in this chapter.

  8. Synchronization with a remote control: You’ve been working hard on your local copy of the Git archive, and now you want to share it with your friends. See how you can share through the use of remote controls, and how you can use multiple remote controls at once.

  9. Create a repository: If you are starting a new project and want to use Git for source control, you must first create a new repository.

  10. Merger: The branches in Git without merging would be like basketball without the hoop – fun, sure, but with very few points. In this chapter you will learn how to use merging to combine the work of several branches back into one.

Learn how to get started with Git, the differences between platforms and a quick overview of the typical Git workflow.


It is quite common to start by making a copy of someone else’s stock. Discover how to clone an external repo to your local machine, and what constitutes “forking” a repository.


A Git repo consists of a sequence of commitments – each representing the state of your code at some point. Discover how to create these commitments to track the changes you make to your code.


Before you can create a Git commitment, you must use the “add” command. What does it do? Discover how to use the layout area with great effect through the interactive command git add.


Sometimes there are things you really do not want to store in the source code.


There is very little point in making a nice story with your source code if you can not explore it. You will discover the versatility of the git log command – view branches, graphs and even filter history.


The real power of Git comes from its branching and merging model. This allows you to work on several things at once. Discover how to manage branches and exactly what they are in this chapter.


You’ve been working hard on your local copy of the Git archive, and now you want to share it with your friends. See how you can share through the use of remote controls, and how you can use multiple remote controls at once.


If you are starting a new project and want to use Git for source control, you must first create a new repository.


Branches in Git without merging would be like basketball without the hoop – fun, sure, but with very few points. In this chapter you will learn how to use merging to combine the work of several branches back into one.



Source link