Zum Inhalt springen

Git: Unterschied zwischen den Versionen

Hasch (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 ==
= Git Introduction / Tutorial =


<pre>git clone someurl</pre>
<pre>git clone fromsomeurl
or
git init
</pre>


<pre>git pull</pre>
<pre>git pull</pre>


<pre>git commit file -m "holla"
<pre>git add file</pre>
 
<pre>git commit -m "holla"
git push</pre>
git push</pre>


<pre>git stash # stacks away
<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
Abgerufen von „https://metalab.at/wiki/Git