Git: Unterschied zwischen den Versionen

Aus Claudio's Wiki
Wechseln zu: Navigation, Suche
(3)
Zeile 23: Zeile 23:
 
:git config --local
 
:git config --local
  
= 3 =
+
= Basics =
 +
# Clone existing Repository: git clone git://github.com/schacon/grit.git
 +
::That creates a directory named "grit", initializes a .git directory inside it, pulls down all the data for that repository, and checks out a working copy of the latest version
 +
::git clone git://github.com/schacon/grit.git mygrit
 +
::Creates mygrit directory instead of grit
 +
 
 +
 
 +
== Commands ==
 +
<pre>git commit -m 'initial project version'</pre>

Version vom 20. Februar 2012, 19:07 Uhr

Basics

Git is a Distributed Version Control System (DVCS).

Local Operations

Working directory
Files where you work
Staging Area
Staged diffs are ready to be committed
git repository
Committed files

Config

System (/etc/gitconfig)
git config --system
Global (~/.gitconfig)
git config --global
Repository (%WORKINGDIRECTORY%/.git/config)
git config --local

Basics

  1. Clone existing Repository: git clone git://github.com/schacon/grit.git
That creates a directory named "grit", initializes a .git directory inside it, pulls down all the data for that repository, and checks out a working copy of the latest version
git clone git://github.com/schacon/grit.git mygrit
Creates mygrit directory instead of grit


Commands

git commit -m 'initial project version'