⚓ Git Hook
🎌 Kullanım Talimatları
- 📂
git init
komutu ile oluşturulan.git/hooks
dizininde bulunur - 🧱 Hook Listesi alanındaki size lazım olan isimle dosya oluşturun
- Örn:
pre-commit
(dosyanın uzantısı olmayacak) - Var olan scriptlerin sonlarındaki
.sample
isminin silinmesiyle içindeki kodlar aktif hale gelir
- Örn:
- 👨💻 Shell script yapısı ile çalışmaktadır
- 👮♂️ Scriptler
0
dışında bir değer döndürürse, seçilen işlem tamamlanmaz.
{% page-ref page="../../programlama/yardimci/shell.md" %}
🧱 Hook Listesi
- applypatch-msg
- pre-applypatch
- post-applypatch
- pre-commit
- prepare-commit-msg
- commit-msg
- post-commit
- pre-rebase
- post-checkout
- post-merge
- pre-receive
- update
- post-receive
- post-update
- pre-auto-gc
- post-rewrite
- pre-push
🔗 Harici Bağlantılar
{% embed url="https://githooks.com/" %}