Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa | ||
|
wiki2:gitlist [2020/08/25 16:38] alfred [Patches] |
wiki2:gitlist [2020/08/25 17:39] (actual) |
||
|---|---|---|---|
| Línea 100: | Línea 100: | ||
| * Apply the path and create a commit: ''git am <patch_file_path>'' | * Apply the path and create a commit: ''git am <patch_file_path>'' | ||
| - | ==== pre-commit ==== | + | ===== pre-commit ===== |
| * https://pre-commit.com/ | * https://pre-commit.com/ | ||
| * https://ljvmiranda921.github.io/notebook/2018/06/21/precommits-using-black-and-flake8/ | * https://ljvmiranda921.github.io/notebook/2018/06/21/precommits-using-black-and-flake8/ | ||
| * https://black.readthedocs.io/en/stable/version_control_integration.html | * https://black.readthedocs.io/en/stable/version_control_integration.html | ||
| + | * https://github.com/pre-commit/pre-commit-hooks#no-commit-to-branch | ||
| Install: | Install: | ||
| Línea 129: | Línea 130: | ||
| pre-commit run --all-files | pre-commit run --all-files | ||
| </code> | </code> | ||
| + | |||
| + | ===== Git Hooks ===== | ||
| + | * https://githooks.com/ | ||
| + | * https://github.com/aitemr/awesome-git-hooks | ||
| + | * https://itnext.io/using-git-hooks-to-enforce-branch-naming-policy-ffd81fa01e5e | ||
| + | * https://www.devwithimagination.com/2020/04/13/git-commit-hooks-for-branch-naming-pre-commit/ | ||
| + | |||
| + | |||