Code Snippet of steps to push to a github repository
Innitialize the repo by using below line of code
git init
Add files from your local repository to the remote repo
git add .
Stage the added files for commitment
git commit -m "commit message"
Point the staged files to the repo and the branch
git remote add "github repo"
git branch -b main
Finally push to the remote repository using below code
git push -u origin main