git init

git remote add origin <repo_url>

git branch -M main

git pull origin main --rebase

git add .

git commit -m "msg"

git push origin main