summaryrefslogtreecommitdiffstats
path: root/web/input/doc
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2014-01-11 21:27:59 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2014-01-11 21:27:59 (GMT)
commitdf26d5827b8118c01ef203b5e87833d3d7b7434b (patch)
tree63d480dbe8d7f02ecc911e81904248e68e0d68c0 /web/input/doc
parentf67167fc31af5f1b650067ebc3291e39114d8fef (diff)
downloadsite-df26d5827b8118c01ef203b5e87833d3d7b7434b.tar.gz
doc/faq/git.md: Omit most references to SVN
This text was written a few years ago, when we switched from SVN to Git. These days, it makes less sense to assume the reader is accustomed to SVN but not to Git.
Diffstat (limited to 'web/input/doc')
-rw-r--r--web/input/doc/faq/git.md22
1 files changed, 11 insertions, 11 deletions
diff --git a/web/input/doc/faq/git.md b/web/input/doc/faq/git.md
index 05fd533..71200c8 100644
--- a/web/input/doc/faq/git.md
+++ b/web/input/doc/faq/git.md
@@ -8,21 +8,23 @@ After the 1.4.13 release, the [Nagios Plugins Development Team][team] moved to
8[Git][git] for its code repositories. This document is a quick introduction 8[Git][git] for its code repositories. This document is a quick introduction
9to Git. 9to Git.
10 10
11## Differences Between Git and SVN 11## Basic Concepts
12 12
13There is one huge difference between Git and SVN: Git is a distributed SCM 13Git is a distributed source code management (SCM) system. This doesn’t mean
14(Source Code Management system) while SVN is a centralized one. This doesnt 14we cant have a central shared Git repository (and we indeed have one), this
15mean we can’t have a central shared Git repository (and we indeed have one), 15means distributed development can occur around that central repository.
16this means distributed development can occur around that central repository. 16
17Another visible difference is that Git have more stages between the working 17Git has an additional stage between the working directory and the repository.
18directory and the repository. When you want to add files or changes, you use 18When you want to add files or changes, you use
19**git add**. This adds the changes to the repository index, which can be seen 19**git add**. This adds the changes to the repository index, which can be seen
20as a staging area. When you commit with **git commit**, only the changes in 20as a staging area. When you commit with **git commit**, only the changes in
21the index are considered. After committing, the changes are still local. To 21the index are considered. After committing, the changes are still local. To
22share it with others, you have to push it to a remote repository, or gave 22share it with others, you have to push it to a remote repository, or gave
23someone pull from your publicly accessible repository (in most case you will 23someone pull from your publicly accessible repository (in most case you will
24still have to push changes there, unless if you were running a git daemon 24still have to push changes there, unless if you were running a git daemon
25straight off your working repository). Finally you can’t miss the fact that 25straight off your working repository).
26
27Finally you can’t miss the fact that
26there is no more revision numbers, and the distributed nature of Git is the 28there is no more revision numbers, and the distributed nature of Git is the
27reason for that: there is absolutely no way a single number could be tracked 29reason for that: there is absolutely no way a single number could be tracked
28in a distributed way. Instead Git uses SHA1 hashes to identify commits (as 30in a distributed way. Instead Git uses SHA1 hashes to identify commits (as
@@ -175,8 +177,6 @@ Chacon][scott]'s [Pro Git][book].
175 <http://www.kernel.org/pub/software/scm/git/docs/everyday.html> 177 <http://www.kernel.org/pub/software/scm/git/docs/everyday.html>
176- Git User’s Manual 178- Git User’s Manual
177 <http://www.kernel.org/pub/software/scm/git/docs/user-manual.html> 179 <http://www.kernel.org/pub/software/scm/git/docs/user-manual.html>
178- Git - SVN Crash Course
179 <http://git.or.cz/course/svn.html>
180- Git QuickStart 180- Git QuickStart
181 <http://git.or.cz/gitwiki/QuickStart> 181 <http://git.or.cz/gitwiki/QuickStart>
182- Git CheatSheet 182- Git CheatSheet