O'Reilly logo

Git Recipes: A Problem-Solution Approach by Włodzimierz Gajda

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 3

image

Creating Local Repositories with Linear History

In this chapter you will learn how to create your own repositories, and how to use them in your daily work. This includes

  • Initialization of a new repository with $ git init
  • Storing snapshots as revisions with $ git add –A and $ git commit -m "..."
  • Checking the status of the repository with $ git status -s -b

You’ll learn how to start a new project from scratch as well as how to import existing files.

Three recipes will focus on restoring the working directory to snapshots stored in revisions. After learning these recipes you should be able to reset the working directory of any repository—such ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required