1st Step: Create a repository on GitHub;

a.png

2nd Step: Open your VSCode; 3rd Step: Inside VSCode, open the Terminal and click on “New Terminal”. You can also use the command Ctrl + Shift + ' to open a new terminal;

aa.png

aaa.png

Step 4: Inside the Terminal Command Prompt, enter the following codes:

git config --global user.name "PUT YOUR GITHUB USERNAME HERE"

git config –global user.email “PUT YOUR EMAIL USED TO CREATE THE GITHUB ACCOUNT HERE”

5th Step: Configure your remote repository with the following codes:

git init // To start the repository

git status -u /* To map all files in your folder and
see which files have been modified or need to be added to the repository.
Files that have been modified or are new are colored red. */

git add -A // Get all your files ready to be uploaded to GitHub

/* Type again */ git status -u /* to see if all files are ready
to be uploaded to the repository. */

git branch main // To create the main "Branch" of your code

git commit -m "Commit 1.0.0" // Create a title for your "Branch"

git remote add origin "PUT YOUR GITHUB REPOSITORY URL HERE" /* Add the
your GitHub repository as a remote repository to upload the files to */

git push origin main // Upload ALL files in your folder to GitHub

6th Step: In case of giving an error in the upload, use the following code:

git push --force origin main // Force upload files to remote repository