Step: 1
Open the file manager and the path of the code
Below I have created 3 sample files under Folder demo-work
Step: 2
Click on the path of the code
Type CMD and press enter
This is the CMD look
git init
git add .
We use git add . (to stage all the files if you want to select the particular file then type git add index.html
git commit -m "any message"
To check commit use command
git log
Step: 3
Open GitHub and create repository for this code
Now copy the highlighted command
Paste it to your cmd terminal
Type another final command
git push
after typing git push another command is showing which we need to copy
Paste the above selected command
git push --set-upstream origin master
Refresh the page to see the output
Without Refresh
After refreshing the browser
Our task to push the local project to the GitHub repository is DONE
Β