- Click on repo or new repo.
- Write your repo name.
- Click on create repository.
- goto your terminal or
- initialize your git.
- Configure the user.
Note :- stap 1 to 6 is for first time installation or configartaion. After first time we have to direct start from stap7
7. Add the remote git origin / Add your repo.
- Add all the changes to stage. To tell the git that this are the changes we have to commit.
- Commit all the changes to current branch.
- Push all the changes to the current branch.
- Stage all the changes.
- Commit all the changes.
- Pushing all the changes.
-
Go to your github repository. Requirnment:- a. You should have only one index.html file in root of the folder.
-
Go to settings.
-
Open The pages from left sidebar.
-
Select option as Deploy from branch.
-
Select your branch as master /main.
-
Click on save botton.
-
Wait for 5 min ans reload page.
-
Click on visit site.
- Pull from repo.
GSSOC : Google summer school of code
- Delete file from local host.
- git add .
- git commit -m "delete file"
- git push origin master