How to push existing repository to GitHub

git remote add origin https://github.com/UserName/RepositoryName.git &&
git branch --move --force main &&
git push --set-upstream origin main