Files
soul-yongping/.cursor/scripts/create-offline-bundle.sh

13 lines
593 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# 在「已有完整仓库」的机器上生成 bundle拷到 U 盘/共享盘后 Windows: git clone xxx.bundle soul-yongping
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
cd "$ROOT"
BRANCH="${1:-devlop}"
OUT="${2:-$ROOT/soul-yongping-${BRANCH}.bundle}"
git rev-parse --verify "$BRANCH" >/dev/null
git bundle create "$OUT" "$BRANCH"
echo "已生成: $OUT"
echo "Windows 示例: git clone %CD%\\soul-yongping-${BRANCH}.bundle soul-yongping"
echo "后续补远程: cd soul-yongping && git remote add origin http://192.168.1.201:3000/fnvtk/soul-yongping.git"