Visual Studio has a shortcut that allows user to commit and push projects onto GitHub.
Step 1: Go to setting, search git enabled to ensure that Git is enabled on Visual Studio Code.

Step 2: Click on source control, then click on Initialize Repository.

Step 3: Enter a commit message, then click on the check mark.

Step 4: Click on View, then Command Palette…

Step 5: Search “add remote” in the Command Palette, and Git: Add Remote should show up, click on that.

Step 6: Click on Add remote from GitHub.

Step 7: Go to GitHub and create a new repository. For this project, I called mine Resume.
Step 8: Find the right GitHub repository, the click on it.

Step 9: Provide a remote name, I called mine Resume, press Enter.

Step 10: Click on icon that looks like a recycle symbol at the bottom-left corner to push the project to GitHub.

If I want to upload files exclude downloaded packages from node_modules folder. Create .gitignore file at the home directory, then put node_modules in it.