## Make All Repo Private - Install Git CLI - gh auth - gh auth refresh -s repo --hostname github.com - Run this code in powershell ```powershell= $me = gh api user -q .login $repos = gh repo list $me --limit 1000 --json name,visibility | ConvertFrom-Json | Where-Object { $_.visibility -eq "PUBLIC" } foreach ($r in $repos) { gh repo edit "$me/$($r.name)" --visibility private --accept-visibility-change-consequences } ``` ## Change Author ```powershell #!/usr/bin/env bash set -e REPO_URL="https://github.com/AIAgentFoundry/agentic-ai-service-framework.git" REPO_DIR="agentic-ai-service-framework" AUTHOR_NAME="$(git config user.name)" AUTHOR_EMAIL="$(git config user.email)" if [ -z "$AUTHOR_NAME" ] || [ -z "$AUTHOR_EMAIL" ]; then echo "❌ Git user.name or user.email not set" echo "Run:" echo 'git config --global user.name "Your Name"' echo 'git config --global user.email "you@users.noreply.github.com"' exit 1 fi echo "✅ Using author:" echo " $AUTHOR_NAME <$AUTHOR_EMAIL>" echo rm -rf "$REPO_DIR" git clone "$REPO_URL" "$REPO_DIR" cd "$REPO_DIR" echo "🔄 Rewriting commit history..." git filter-repo --commit-callback " commit.author_name = b\"$AUTHOR_NAME\" commit.author_email = b\"$AUTHOR_EMAIL\" commit.committer_name = b\"$AUTHOR_NAME\" commit.committer_email = b\"$AUTHOR_EMAIL\" " echo "🚀 Force pushing rewritten history..." git push --force --all git push --force --tags echo echo "🎉 All commits now belong to you!" ```