Skip to content

Instantly share code, notes, and snippets.

View pajcho's full-sized avatar
:octocat:
Make it work, make it right, make it fast

Nikola Pajic pajcho

:octocat:
Make it work, make it right, make it fast
View GitHub Profile
@pajcho
pajcho / migrate-to-main.sh
Last active June 3, 2025 12:41
Migrate repo from dev to main
#!/bin/bash
set -e
echo "🚀 Starting migration..."
# Check if inside a git repo
if ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
echo "❌ Not a Git repository. Run this inside your local repo folder."
exit 1