19 Linux Setup
19.1 Git Config
19.2 Step 1: Configure Git Identity
Set up the same identity you use on your MacBook:
git config --global user.name "user-name"
git config --global user.email "example@gmail.com"
19.3 Step 2: Configure Core Settings
# If VS Code is available on the server
git config --global core.editor "code --wait"
# If you prefer a simpler editor
git config --global core.editor "nano"
# Handle line endings properly (same as your MacBook)
git config --global core.autocrlf input
# Increase buffer for large files (same as your MacBook)
git config --global http.postbuffer 524288000
19.4 Step 3: Authentication Strategy
Since you’re on a shared server without admin privileges, you have two good options:
19.4.2 Option B: SSH Keys (More Secure, If You Prefer)
Since other users can’t access your home folder, SSH keys are secure:
# Generate SSH key (if you don't have one)
ssh-keygen -t ed25519 -C "example@gmail.com"
# Press Enter for default location (~/.ssh/id_ed25519)
# Set a passphrase for extra security
# Display public key to add to GitHub
cat ~/.ssh/id_ed25519.pub
Then add this public key to GitHub: Settings → SSH and GPG keys → New SSH key
19.6 Step 6: Verify Configuration
git config --list