Warning: Undefined array key 1 in /DISK2/WWW/lipensky.cz/tomas/inc/auth.php on line 78 dev:git [Tomas Lipensky - vedomostni koutek] Warning: Undefined array key "stylesheets" in /DISK2/WWW/lipensky.cz/tomas/inc/StyleUtils.php on line 102
Warning: Undefined array key -1 in /DISK2/WWW/lipensky.cz/tomas/inc/html.php on line 1458

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
dev:git [2023/05/16 11:07]
tomas [Vetve / branches]
dev:git [2026/05/04 17:19] (current)
tomas [git promenne]
Line 5: Line 5:
 [[https://www.git-tower.com/learn/git/ebook/en/command-line/appendix/best-practices|Best practice]]\\ [[https://www.git-tower.com/learn/git/ebook/en/command-line/appendix/best-practices|Best practice]]\\
 [[https://www.atlassian.com/git/tutorials/comparing-workflows/centralized-workflow|Tutorial on workflow]]\\ [[https://www.atlassian.com/git/tutorials/comparing-workflows/centralized-workflow|Tutorial on workflow]]\\
 +
 +====užitečné nástroje====
 +[[https://pre-commit.com|pre-commit]] ... automatické akce v případě volání git hooku, jako třeba git commit. Např automaticky zformátuje a zvaliduje kód\\
 +conventional commits ... prefix konvence commitů pro lepší rozpoznání účelu a pro automatické generování changelogu\\
 +sme\\
 +[[https://github.com/cookpete/auto-changelog|auth-changelog]] ... automatické generování changelogů\\
 +[[https://medium.com/opensight-ch/git-semantic-versioning-and-conventional-commits-564aece418a0|článek]] o použití sematického verzování, conventional commits, release note, change logu atd\\
 +[[https://git-scm.com/book/en/v2/Git-Tools-Submodules|Submodule]] ... možnost mít v git repozitáři namountované i jiné repozitáře v podadresářích, když máme závislosti na jiné repa\\
  
 ====git promenne==== ====git promenne====
Line 12: Line 20:
 ''git config %%--list --%%system'' ... zobrazi systemove promenne\\ ''git config %%--list --%%system'' ... zobrazi systemove promenne\\
 ''git config %%--list --%%global'' ... zobrazi globalni promenne\\ ''git config %%--list --%%global'' ... zobrazi globalni promenne\\
 +''git config %%--list --%%show-origin'' ... zobrazi všechny proměnné a kde jsou definovány\\
 ''git config %%--%%global alias.co checkout'' ... aliasy\\ ''git config %%--%%global alias.co checkout'' ... aliasy\\
 ''git config %%--%%global credential.helper cache'' ... cachovane kredence\\ ''git config %%--%%global credential.helper cache'' ... cachovane kredence\\
Line 164: Line 173:
 git push origin --force --all git push origin --force --all
 git push origin --force --tags git push origin --force --tags
 +
 +#MIGRACE REPA
 +git clone --mirror REPO
 +git lfs install --local
 +git lfs migrate import --verbose --above=100MB --everything
 +git remote add github REPO2
 +git lfs fetch --all
 +git push github --mirror
 +git lfs push github --all
 +
 ``` ```