Show Menu
Cheatography

Git flow Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Vytvoření nové feature branche

git fetch origin
Aktual­izuje vsechny refs z origin remote
git checkout -b feature-* origin­/de­velop
vytvori feature branch z branche develop na origin remote

commit­ování změn do branche

git status
zobrazí aktuální lokální změny
git add --all
přidá všechny aktuální změnit do staging
git add --inte­ractive
umožňuje intera­ktivní výběr souboru pro staging
git commit
commitne všechny stagnuté změny, pokusí se otevřít textový editor pro editaci commit message
git commit-m "­tex­t"
commitne všechny stagnuté změny, zadá "­tex­t" jako commit message
 

Vytvoření hotfix branche

git fetch origin
Aktual­­izuje vsechny refs z origin remote
git checkout -b hotfix-* origin­­/m­aster
vytvori hotfix branch z branche master na origin remote

Push commit­nutých změn

Před pushnutím je nejdrív potřeba stáhnout a mergnout poslední změny remote branche
git pull
Stáhne a mergne změny z aktuální remote tracking branche
V pripadě potřeby řešení konfliktů
git pull origin develop
Stáhne a mergne změny z branche develop z remote origin
------­---­---­---­---­---­---­---­---­---­-----
git push
pushne změny do remote tracking branche
git push origin feature-*
pushne změnz do branche feature-* na remote origin