-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.git-workers.toml
More file actions
35 lines (29 loc) · 863 Bytes
/
.git-workers.toml
File metadata and controls
35 lines (29 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Git Workers configuration file
[repository]
# Repository URL for identification (optional)
# This ensures hooks only run in the intended repository
url = "https://github.com/wasabeef/git-workers.git"
[hooks]
# Run after creating a new worktree
post-create = [
"echo '🤖 Created worktree: {{worktree_name}}'",
"echo '🤖 Path: {{worktree_path}}'"
]
# Run before removing a worktree
pre-remove = [
"echo '🤖 Removing worktree: {{worktree_name}}'"
]
# Run after switching to a worktree
post-switch = [
"echo '🤖 Switched to: {{worktree_name}}'"
]
[files]
# Optional: Specify a custom source directory
# If not specified, automatically finds the main worktree
# source = "/path/to/custom/source"
# source = "./templates" # Relative to repository root
# Files to copy when creating new worktrees
copy = [
".env",
".env.local"
]