Bitkeeper broke down this prompted the linus torvalds

  • No School
  • AA 1
  • ankyrockstar26
  • 364
  • 100% (2) 2 out of 2 people found this document helpful

This preview shows page 176 - 185 out of 364 pages.

BitKeeper broke down This prompted the Linus Torvalds the creator of Linux to develop their own tool based on some of the lessons they learned while using BitKeeper Since its birth in 2005 , Git has evolved and matured to be easy to use
Image of page 176
BITS Pilani, Pilani Campus Introduction to Git Contd… A Short History of Git: The qualities considered for the development of Git was: Speed Simple design Strong support for non-linear development (thousands of parallel branches) Fully distributed Able to handle large projects like the Linux kernel efficiently (speed and data size)
Image of page 177
BITS Pilani, Pilani Campus Introduction to Git Contd… What is Different in Git?
Image of page 178
BITS Pilani, Pilani Campus Introduction to Git Contd… This is How Git treats:
Image of page 179
BITS Pilani, Pilani Campus Introduction to Git Contd… Nearly Every Operation Is Local: Most operations in Git need only local files and resources to operate you have the entire history of the project right there on your local disk, most operations seem almost instantaneous Git Has Integrity Everything in Git is check-summed before it is stored and is then referred to by that checksum You can’t lose information in transit or get file corruption without Git being able to detect it. Git Generally Only Adds Data When you do actions in Git, nearly all of them only add data to the Git database After you commit a snapshot into Git, it is very difficult to lose, especially if you regularly push your database to another repository
Image of page 180
BITS Pilani, Pilani Campus Introduction to Git Contd… The three states of Git: Git has three main states that your files can reside in: Committed : Committed means that the data is safely stored in your local database Modified : Modified means that you have changed the file but have not committed it to your database yet Staged : Staged means that you have marked a modified file in its current version to go into your next commit snapshot
Image of page 181
BITS Pilani, Pilani Campus A Git Project: The Git directory: It is where Git stores the metadata and object database for your project It is copied when you clone a repository from another computer The working tree: It is a single checkout of one version of the project These files are pulled out of the compressed database in the Git directory and placed on disk for you to use or modify The staging area: It is a file, generally contained in your Git directory It stores information about what will go into your next commit Its technical name in Git parlance Introduction to Git Contd…
Image of page 182
BITS Pilani, Pilani Campus Introduction to Git Contd… The basic Git workflow: You modify files in your working tree You selectively stage just those changes you want to be part of your next commit; which adds only those changes to the staging area You do a commit; which takes the files as they are in the staging area and stores that snapshot permanently to your Git directory
Image of page 183
BITS
Image of page 184
Image of page 185

You've reached the end of your free preview.

Want to read all 364 pages?

  • Fall '19

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture