howto:vcs:git_howtos
Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Následující verze | Předchozí verzePoslední revizeObě strany příští revize | ||
howto:vcs:git_howtos [2014/12/08 04:51] – upraveno mimo DokuWiki 127.0.0.1 | howto:vcs:git_howtos [2017/10/13 23:03] – [Delete all commits except for 5 last without changing commit hashes] harvie | ||
---|---|---|---|
Řádek 71: | Řádek 71: | ||
vim -esc " | vim -esc " | ||
</ | </ | ||
+ | |||
+ | ==== Delete all commits except for 5 last without changing commit hashes ==== | ||
+ | |||
+ | <code bash> | ||
+ | git rev-parse HEAD~4 | ||
+ | git reflog expire --expire=0 | ||
+ | git prune | ||
+ | git gc | ||
+ | </ | ||
+ |
howto/vcs/git_howtos.txt · Poslední úprava: 2017/10/13 23:39 autor: harvie