16 lines
365 B
Bash
16 lines
365 B
Bash
#!/bin/bash
|
|
set -e
|
|
cd /Users/Chiguyong/Code/GEO
|
|
echo "=== Step 1: Check remote ==="
|
|
git remote -v
|
|
echo "=== Step 2: Git status ==="
|
|
git status
|
|
echo "=== Step 3: Git log ==="
|
|
git log --oneline -5
|
|
echo "=== Step 4: Push ==="
|
|
git push -u origin main 2>&1 || {
|
|
echo "Push failed, trying force push..."
|
|
git push -u origin main --force 2>&1
|
|
}
|
|
echo "=== Done ==="
|