This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
kurs:git [2010/05/18 11:15] 127.0.0.1 external edit |
kurs:git [2012/01/04 11:19] mh |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | "checkout" | + | ==== initialer checkout = clone ==== |
git clone git@github.com:MarkHofstetter/zend-hr-employees.git | git clone git@github.com:MarkHofstetter/zend-hr-employees.git | ||
+ | |||
+ | |||
+ | ==== Bestimmes file aus einer bestimmten revision auschecken ==== | ||
+ | |||
+ | git checkout abcde file/to/restore | ||
+ | |||
+ | ==== Alle - auch remote - branches anzeigen (geht logischerweise erst nach einem pull) ===== | ||
+ | |||
+ | git branch -a | ||
+ | |||
+ | danach lokalen tracking branch erstellen | ||
+ | |||
+ | git checkout -b develop remotes/origin/develop | ||
+ | |||
+ | topic branch abzweigen (branchen) | ||
+ | |||
+ | git branch topic | ||
+ | git checkout topic | ||
+ | |||
+ | gegebenenfalls ins repo schieben | ||
+ | |||
+ | git push origin topic | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||