Leanpub Header

Skip to main content

Simply Git

Version Control with Ease

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
WEB
About

About

About the Book

If you want to manage changes to your projects effectively with ease, this book is for you. It gives you the essential Git commands that cover most of your daily version control needs. Learning is more effective when you work on real examples. Therefore, this book also gives you a complete working solution that guides you through the workflow of managing your work with Git.

You will begin with the basics of managing a project on your local machine, which cover how to create a repository, save a revision of your work, move and delete files, compare differences, inspect project history, restore your project to a previous state, and undo your mistakes. Next, you will learn how to organize your work into isolated lines of development so that you can freely experiment with new ideas. Ideas that work can be merged while others can be discarded. You will also learn how to put a copy of your work online, either to serve as a backup or to share your work with others.

The last chapter gives you a few more commands that can make your work life easier. You will find guidelines on how to use Git effectively as well. Once you have finished this book, you should be able to use Git to manage your projects and explore advanced topics with relative ease.

Price

Pick Your Price...

Minimum price

$7.99

$9.99

You pay

$9.99

Author earns

$7.99
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 1)

1
The author will earn $12.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

iThinker Studio

We are devoted to disseminating knowledge in a form that is accessible to everyone!

At iThinker Studio, we believe your time is the most valuable thing in the world. Therefore, our books are written in an easy-to-understand manner, concise, and present the essential fundamentals that cover most of your needs. This allows you to learn new things quickly and apply them to your benefit. Once you have the fundamentals, you can explore advanced topics with relative ease.

Contents

Table of Contents

Copyright

Book summary

Introduction

  1. Why Git?
  2. Why this book?
  3. Outline

Getting started

  1. The command line
  2. Installing Git
  3. Configuring Git
  4. Summary

Basic version control with Git

  1. Setting up your project
  2. Initializing a Git repository
  3. Tracking files
  4. Preparing a revision of your work
  5. Committing your work
  6. What is a commit?
  7. Inspecting a commit
  8. Adding new changes
  9. What are the new changes?
  10. Inspecting the staged changes
  11. Preparing your next commit
  12. What are all the new changes you have made so far?
  13. What is HEAD?
  14. Your second commit
  15. Amending the last commit
  16. Renaming a file
  17. Writing a descriptive commit message
  18. Removing unwanted files
  19. Undoing the last commit
  20. Undoing an undo operation
  21. Retrieving an old revision of your work
  22. Returning to your latest work
  23. Accessing the ancestor of a commit
  24. Summary

Branching and merging

  1. What is a branch?
  2. Creating a new branch
  3. Branches are independent lines of development
  4. Adding a new document
  5. Adding and committing changes in one single step
  6. First complete version
  7. Fixing errors
  8. Switching branches in the middle of your work
  9. Stashing uncommitted changes
  10. Creating and switching to a new branch automatically
  11. Retrieving a list of stashed changes
  12. Restoring stashed changes
  13. Finalizing your work
  14. Merging
  15. Visualizing history graph
  16. Creating an alias for a long command
  17. Fast-forward merge
  18. Undoing a fast-forward merge
  19. Creating a merge commit
  20. Parents of a merge commit
  21. Conflicts
  22. Resolving conflicts
  23. Rebasing
  24. Undoing a rebase operation
  25. Rebasing without switching branches
  26. Cherry-picking
  27. Cleaning up a branch
  28. Cleaning up your repository for sharing
  29. Summary

Going online

  1. Creating a BitBucket account
  2. Creating a repository on BitBucket
  3. Connecting your local repository with a remote repository
  4. Pushing local changes to a remote repository
  5. Tracking information
  6. Your repository on BitBucket
  7. Cloning a remote repository
  8. Changing the author of a cloned repository
  9. Pushing from a cloned repository
  10. Fetching new changes from a remote repository
  11. Push rejection
  12. Resolving a push rejection
  13. Making the history linear
  14. Reverting your shared changes
  15. Renaming a remote repository
  16. Adding more remote repositories
  17. Creating a GitHub account
  18. Creating a private repository on GitHub
  19. Using GitHub
  20. Removing a remote repository
  21. Summary

Going the extra mile

  1. Navigating text
  2. Navigating history
  3. Ignoring files
  4. Tagging a commit
  5. Who last modified a file?
  6. Error hunting
  7. Bundling your repository
  8. Distributing your work
  9. Finding lost commits
  10. General guidelines
  11. Extra learning resources
  12. Summary

About iThinker Studio

Support

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub