Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
dev:git [2022/09/30 12:34]
tomas [Prace s kodem, schvalovani zmen, historie]
dev:git [2022/10/04 13:41]
tomas [Prace s kodem, schvalovani zmen, historie]
Line 42: Line 42:
 ''%%git commit -m "komentar k commitnuti"%%'' ... potvrzeni kodu k odeslani u vsech souboru pridanych pomoci add\\ ''%%git commit -m "komentar k commitnuti"%%'' ... potvrzeni kodu k odeslani u vsech souboru pridanych pomoci add\\
 ''git commit --amend'' ... oprava posledniho commitu\\ ''git commit --amend'' ... oprava posledniho commitu\\
 +''%%git commit --fixup 1e30877%%'' ... commitne zmeny jako opravu commitu 1e30877\\
 ''git reset HEAD service_scanner.sh'' ... odebere soubor service_scanner z commitu\\ ''git reset HEAD service_scanner.sh'' ... odebere soubor service_scanner z commitu\\
 ''%%git reset --hard origin/dev%%'' ... prepise na tvrdo lokalni zmeny ?\\ ''%%git reset --hard origin/dev%%'' ... prepise na tvrdo lokalni zmeny ?\\
Line 59: Line 60:
 ''git revert'' ... vrati zmeny\\ ''git revert'' ... vrati zmeny\\
 ''git reset'' ... pozor, muze byt nebezpecne, ztrata zmen\\ ''git reset'' ... pozor, muze byt nebezpecne, ztrata zmen\\
 +''%%git rebase -i --autosquash 7dbe2a9%%'' ... rebase - slouci fixupy (opravy), otevre v rebase interaktivnim modu\\
 +''git merge origin master'' ... udela pull commitu z masteru a jejich merge do aktualni vetve\\
 +''git rebase -i HEAD~3'' ... rebase poslednich 3 commitu\\
 ''git shortlogs'' ... vylistuje comity podle autoru\\ ''git shortlogs'' ... vylistuje comity podle autoru\\
 ''git gc'' ... garbage collection\\ ''git gc'' ... garbage collection\\