Git: 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
Zeile 3: Zeile 3:
  
 
== Git Installation ==
 
== Git Installation ==
 +
 +
=== Linux ===
 +
 +
    sudo apt-get install git
 +
 +
UI (there are several possibilities)
 +
 +
    sudo apt-get install git-cola gitk
  
 
=== OS X ===
 
=== OS X ===

Version vom 10. September 2012, 09:46 Uhr

Intro

Git is a version control system. It's more powerful than svn and quite confusing (for starters).

Git Installation

Linux

   sudo apt-get install git

UI (there are several possibilities)

   sudo apt-get install git-cola gitk

OS X

Git Introduction / Tutorial

git clone someurl
git pull
git commit file -m "holla"
git push
git stash # stacks away
git stash apply # gets stash back
git branch --track thebranch origin/thebranch

switch to a remote branch