This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
wiki:ostatni:git:start [2018/01/19 23:12] root |
wiki:ostatni:git:start [2020/12/26 20:07] (current) root |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| git config --global credential.helper 'cache --timeout=3600' | git config --global credential.helper 'cache --timeout=3600' | ||
| git config --global core.editor nano | git config --global core.editor nano | ||
| + | |||
| + | git config --list | ||
| </ | </ | ||
| ** Vytvoreni noveho projektu v Local repository ** | ** Vytvoreni noveho projektu v Local repository ** | ||
| * git init | * git init | ||
| + | * nebo git init jmenoprojektu | ||
| ** Pridani Remote Repository *** | ** Pridani Remote Repository *** | ||
| Line 37: | Line 40: | ||
| * git push | * git push | ||
| * git push origin master | * git push origin master | ||
| + | |||
| + | ** Přejmenování / přesun souboru ** | ||
| + | * git mv < | ||
| + | * git status | ||
| + | |||
| + | nebo | ||
| + | |||
| + | * mv < | ||
| + | * git rm < | ||
| + | * git add < | ||
| + | * git status | ||
| {{ : | {{ : | ||
| + | |||
| + | ====== Git Školeni CZ.NIC ====== | ||
| + | |||
| + | checkout - prepnuti na jinou vetev | ||
| + | |||
| + | commit - prvni radek = predmet, pak vynechat radek a napsat delsi message | ||
| + | |||
| + | Nedelat zmeny ve stavu detached HEAD (kdyz head ukazuje primo na konkretni commit namisto vetve), kdyzuz si udelat vetev napr. " | ||
| + | |||