Signup for https://github.com/ and fork below repository
https://github.com/sarithdm/gitandgithub
-
Install git
sudo apt update sudo apt install git -
Clone repository
https://github.com/Your-Github-Username/gitandgithub
-
Run following commands
git add . git commit -m "My Work" git push -
You will be asked to authenticate
Enter username and password of Github account.
Check for your file in https://github.com/Your-Github-Username/gitandgithub
If you are able to see it, Prerequisites is completed
-
Install https://code.visualstudio.com/
-
Clone repository
https://github.com/Your-Github-Username/gitandgithub
3. You can add new file to your repository and save. E.g mywork.py
-
Click on Terminal and run following commands
git add . git commit -m "My Work" git push -
You will be asked to authenticate
Option 1: Directly sign in with browser Option 2: Got to Settings > Developer settings > Personal access tokens
Create a new token and paste it. Sample token: 6fb2c630d21081f4ec55adbb813a72a9968ex6e9 Check for your file in https://github.com/Your-Github-Username/gitandgithub If you are able to see it, Prerequisites is completed