Add a README and the worktrees script.
This commit is contained in:
commit
ac4224804b
2 changed files with 26 additions and 0 deletions
9
worktrees
Executable file
9
worktrees
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
# Set up the structure to use worktrees in this clone.
|
||||
|
||||
BRANCHES=("core")
|
||||
|
||||
for BRANCH in "${BRANCHES[@]"; do
|
||||
mkdir -p "$BRANCH"
|
||||
git worktree add "./$BRANCH" "origin/$BRANCH"
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue