By Chris Belanger & Bhagat Singh
Chris Belanger & Bhagat Singh
Copyright ©2021 Razeware LLC.
Notice of Rights
All rights reserved. No part of this book or corresponding materials (such as text, images, or source code) may be reproduced or distributed by any means without prior written permission of the copyright owner.
Notice of Liability
This book and all corresponding materials (such as source code) are provided on an “as is” basis, without warranty of any kind, express of implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in action of contract, tort or otherwise, arising from, out of or in connection with the software or the use of other dealing in the software.
All trademarks and registered trademarks appearing in this book are the property of their own respective owners.
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!
Book Li cense
Before You Begin
What You Need
Book Source Code & Forums
About the Team
Section I: Beginning Git
Chapter 1: A Crash Course in Git
Chapter 2: Cloning a Repo
Chapter 3: Committing Your Changes
Chapter 4: The Staging Area
Chapter 5: Ignoring Files in Git
Chapter 6: Git Log & History
Chapter 7: Branching
Chapter 8: Merging
Chapter 9: Syncing With a Remote
Chapter 10: Creating a Repository
Section II: Appendices
Appendix A: Installing & Configuring Git