Skip to content

Commit 54fdb6a

Browse files
pRizzcursoragent
andcommitted
chore: add post-push mirror rule
Ensure pushes are mirrored when remote exists. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 8039bd9 commit 54fdb6a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.cursor/rules/post-push-mirror.mdc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
description: Post-push: also push to mirror remote when configured
3+
alwaysApply: true
4+
---
5+
6+
# Post-Push Mirror Remote
7+
8+
- After any successful `git push`, also run `git push mirror`.
9+
- Only do this if a remote named `mirror` exists (check `git remote -v`).
10+
- If `mirror` is not configured, ignore this rule.

0 commit comments

Comments
 (0)