1#!/bin/bash
Sync script to push changes from Codeberg to GitHub mirror Usage: ./sync-to-github.sh
6set -e
Check if we're in a git repository
Add GitHub remote if it doesn't exist
Fetch latest from origin (Codeberg)
Check if we're on main branch
Pull latest changes and handle conflicts
Push to GitHub mirror