Created
January 28, 2026 05:47
-
-
Save mostlygeek/1aebb8c2a49466805e899c965c95a362 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ============================================ | |
| # 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