Git: Difference between revisions

From miki
Jump to navigation Jump to search
Line 27: Line 27:
=== Performance ===
=== Performance ===
Very fast commit. Local repository
Very fast commit. Local repository

== Terminology ==
; hunk
: individual change within a file (basically a file diff output is made of a sequence of one or more hunks).


== Install ==
== Install ==

Revision as of 09:11, 7 February 2011

References

Git cheat sheet

Introduction

Git Features:

  • Reliability
  • Performance
  • Distributed

Distributed

Originally from BitKeeper. Other distributed SCM is Mercurial.

  • No single repository. Everybody always has his own copy of the repository. The repository content is pulled from other people's repository.
  • No politics, no commit access control. All work is always done locally, so there is no need to define such politics.

Reliability

Every change, file, directory, etc. is cryptographically hashed (sha1sum).

  • Easy corruption detection. Any tampering to a file or directory content (either malicious or because of hardware failure) is immediately detected.
  • Easy distribution. Moreover because the repository is distributed all over the place, it is very easy to repair a given repository. You only need to drop all broken objects, and get all missing objects from a remote copy.

Performance

Very fast commit. Local repository

Terminology

hunk
individual change within a file (basically a file diff output is made of a sequence of one or more hunks).

Install

Packages:

  • git-core — the main program
  • git-gui — a gui front-end
  • Web interface:
  • git-doc — documentation
  • Project management: