Skip to content

Commit 8764233

Browse files
committed
adding content for pre-existing pre-push hooks
1 parent 144ec14 commit 8764233

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/pre-push-branch-check.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ mkdir -p ~/.git-hooks
1616
---
1717

1818
## 2. Create the Pre‑Push Hook
19+
20+
Before adding this new hook, check if ~/.git-hooks/pre-push already exists.
21+
If it does, do not overwrite it — instead, add the branch‑protection logic to your current hook so both sets of checks run.
22+
23+
Open your existing hook:
1924
```bash
2025
vim ~/.git-hooks/pre-push
2126
```

0 commit comments

Comments
 (0)