Skip to content

Instantly share code, notes, and snippets.

@mostlygeek
Created January 28, 2026 05:47
Show Gist options
  • Select an option

  • Save mostlygeek/1aebb8c2a49466805e899c965c95a362 to your computer and use it in GitHub Desktop.

Select an option

Save mostlygeek/1aebb8c2a49466805e899c965c95a362 to your computer and use it in GitHub Desktop.
# ============================================
# ONE-TIME SETUP
# ============================================
# --- On sandbox server ---
mkdir -p ~/aperture
cd ~/aperture
git init
git config receive.denyCurrentBranch updateInstead
# --- On laptop ---
cd /path/to/your/local/repo
git remote add sandbox ssh://user@server-address/~/aperture
git push sandbox main --force # force on first push
# ============================================
# PUSH CHANGES: LAPTOP → SANDBOX
# ============================================
# --- On laptop ---
git checkout -b user/feature-branch
# make some changes
git commit -m "path: description"
git push -u sandbox
# --- On Sandbox ---
git checkout user/feature-branch
# make some changes
git commit -m "path: some changes"
# --- On laptop ---
git pull
# push to github
git push origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment