Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Obě strany předchozí revizePředchozí verze | Poslední revizeObě strany příští revize | ||
howto:vcs:git_howtos [2017/10/13 23:03] – harvie | howto:vcs:git_howtos [2017/10/13 23:03] – [Delete all commits except for 5 last without changing commit hashes] harvie | ||
---|---|---|---|
Řádek 75: | Řádek 75: | ||
<code bash> | <code bash> | ||
- | git rev-parse HEAD~1 > .git/ | + | git rev-parse HEAD~4 > .git/ |
git reflog expire --expire=0 | git reflog expire --expire=0 | ||
git prune | git prune |