- Signup for https://github.com/
- Fork below repository
https://github.com/sarithdm/gitandgithub
-
Install git
sudo apt update sudo apt install git -
Clone repository
git clone https://github.com/Your-Github-Username/gitandgithub.git -
Go to the directory gitandgithub, add a sample file and 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
git clone https://github.com/Your-Github-Username/gitandgithub.git -
You can add new file to your repository and save. E.g mywork.py
-
Go to the directory gitandgithub, add a sample file 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