mv .git/refs/heads/master .git/refs/heads/main rm .git/HEAD echo 'ref: refs/heads/main' > .git/HEAD