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 springenHasch (Diskussion | Beiträge) |
Hasch (Diskussion | Beiträge) |
||
Zeile 16: | Zeile 16: | ||
* [http://help.github.com/mac-key-setup/ github mac key setup] | * [http://help.github.com/mac-key-setup/ github mac key setup] | ||
− | + | = Git Introduction / Tutorial = | |
− | <pre>git clone | + | <pre>git clone fromsomeurl |
+ | or | ||
+ | git init | ||
+ | </pre> | ||
<pre>git pull</pre> | <pre>git pull</pre> | ||
− | <pre>git commit | + | <pre>git add file</pre> |
+ | |||
+ | <pre>git commit -m "holla" | ||
git push</pre> | git push</pre> | ||
− | <pre>git stash # | + | <pre>git stash # stashes uncommited changes away |
− | git stash apply # gets stash back</pre> | + | git stash apply # gets stash back and applies it</pre> |
− | <pre>git branch --track thebranch origin/thebranch</pre> switch to a remote branch | + | <pre>git branch --track thebranch origin/thebranch</pre> switch to a remote branch and track it |
Version vom 10. September 2012, 09:48 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 fromsomeurl or git init
git pull
git add file
git commit -m "holla" git push
git stash # stashes uncommited changes away git stash apply # gets stash back and applies it
git branch --track thebranch origin/thebranch
switch to a remote branch and track it