Hi Antonio,
One easy way is adding a remote in your local (Also is possible by a pipeline script task) and from you local copy to your Github repo.
git remote add originGithub <url another repo github>
#to test can list the remotes you will see origin and originGihub
git remote -v
git config --list # this one isn't required if you will do by pipeline
#push your current main branch to github repo origin
git push originGithub main
Cheers,
Luis Arias
If the information helped address your question, please Accept the answer.