GitTutorial: Unterschied zwischen den Versionen

aus Metalab Wiki, dem offenen Zentrum für meta-disziplinäre Magier und technisch-kreative Enthusiasten.
Zur Navigation springenZur Suche springen
(Die Seite wurde neu angelegt: == all that git needs and never is supplied by default == <pre>git config --global user.name "Your Name Comes Here" git config --global user.email you@yourdomain.examp...)
 
Zeile 22: Zeile 22:
  
 
== Git setup ==
 
== Git setup ==
 
+
* install git. [http://code.google.com/p/git-osx-installer/ osx installer]
ssh-keygen, put public key on your http://github.com account
+
* ssh-keygen, put public key on your http://github.com account

Version vom 12. Juni 2009, 02:48 Uhr

all that git needs and never is supplied by default

git config --global user.name "Your Name Comes Here"
git config --global user.email you@yourdomain.example.com
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto


get update: pull

git pull

commit / push

git add file.rb
git commit -m "commit message"
git push
  • commit updates your local repositry
  • push writes it to the server (so other git users can check out aswell)


Git setup