How to move components changes from VS Code to GITHUB using GIT Commands to the repository?

1. Use the following command to include all untracked and changed files.
git add *


2. Use the following command to Commit the changes.
git commit -m  "commit comment"

 
3. Use the following command to map it to the Branch.
git branch -M main

4. Use the following command to push the changes to the Branch.
 git push -u origin main