Setup git in your system
Install git in your system.
Signup/login in your GitHub account.
Create a repository in GitHub.
Upload a project in GitHub
If you're uploading first time
Create your project folder 📁 and open it in VS code.(Make sure in the folder atleast one file is present)
Run these commands in VS code terminal 🧑💻.
This command initialise git in your folder 👇
git init
This command make the files ready to upload. This command add all file in your folder if you want to upload a specific file replace "." with file name and extension for eg "index.html" 👇
git add .
This command basically save the history of your changes and ' -m "First commit" ' this is a message of commit 👇
git commit -m "First commit"
By default your branch is master to change the project branch we use this command. 👇
git branch -M main
This command tells you folder to go specific repository. 👇
git remote add origin https://github.com/your_username/repository_name.git
This is the last command that push your changes in GitHub in main branch 👇
git push -u origin main