You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,8 @@ Create a new worktree with an auto-generated adjective-noun name:
87
87
```bash
88
88
grove add
89
89
# Example generated name: quiet-meadow
90
+
# If .groverc sets "branchPrefix": "safia", example: safia/quiet-meadow
91
+
# Directory remains: quiet-meadow
90
92
```
91
93
92
94
Track a remote branch:
@@ -99,6 +101,7 @@ Bootstrap a newly created worktree with project-scoped commands:
99
101
100
102
```json
101
103
{
104
+
"branchPrefix": "safia",
102
105
"bootstrap": {
103
106
"commands": [
104
107
{ "program": "npm", "args": ["install"] },
@@ -110,6 +113,8 @@ Bootstrap a newly created worktree with project-scoped commands:
110
113
111
114
Save this as `.groverc` in your Grove project root (the directory that contains your bare clone, for example `repo/.groverc` next to `repo/repo.git`).
112
115
116
+
When `grove add` is called without an explicit branch name, Grove generates an adjective-noun name and prepends `branchPrefix` to the branch name when configured. The worktree directory keeps the generated base name.
117
+
113
118
When `grove add` creates a worktree, it runs each bootstrap command in order inside that new worktree directory.
114
119
115
120
- Commands must be portable across Linux/macOS/Windows.
<p>Optional bootstrap commands from <code>.groverc</code> run in the new worktree:</p>
806
808
<pre><code>{
809
+
"branchPrefix": "safia",
807
810
"bootstrap": {
808
811
"commands": [
809
812
{ "program": "npm", "args": ["install"] },
@@ -812,6 +815,7 @@ <h3>Add a new worktree</h3>
812
815
}
813
816
}</code></pre>
814
817
<p>Place <code>.groverc</code> in the Grove project root (next to the bare clone directory).</p>
818
+
<p>When <code>grove add</code> is called without an explicit branch name, Grove generates an adjective-noun name and prepends <code>branchPrefix</code> to the branch name when configured. The worktree directory keeps the generated base name.</p>
815
819
<p>Commands must be portable across Linux/macOS/Windows and use executable + args only (no shell operators like <code>&&</code> or pipes). If one command fails, Grove continues and reports a partial bootstrap state.</p>
0 commit comments