9 lines
195 B
Bash
Executable file
9 lines
195 B
Bash
Executable file
#!/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
|