Skip to content

Instantly share code, notes, and snippets.

View av603's full-sized avatar

Andrew Vella av603

  • Cambridge, UK
  • 17:03 (UTC +01:00)
View GitHub Profile
@av603
av603 / setup_git_worktree.sh
Last active May 22, 2026 23:11
Setup Git Worktree
#!/bin/bash
# setup_git_worktree.sh
#
# Automates setting up a Git workspace using a bare clone and worktrees.
#
# Usage:
# ./setup_git_worktree.sh <repository_url> [<destination_directory>]
#
# Arguments:
# repository_url The remote Git URL to clone (e.g., git@github.com:user/repo.git)