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
Top comments (0)