(Firstly, let's cd (change directory) into your folder your website page is stored. So type)
cd ~
(This will take you away from your root folder.)
cd desktop or documents
(This depends on where you stored your folder that contians the webpage you plan on sending to GitHub)
cd nameoffolder
(This will take you into the folder you stored your .HTML, .js or .py file.)
git init
(Will create a .git file in your folder)
git add webfilename.html
(This will add your .html file)
git status
(This will check status of working tree)
git commit
(Will help with updating your file)
(Remember if you are sending the file for the very first time you will have to)
git remote add origin "repo link".git
(Your repo link can be gotten from your repo folder you created on GitHub copy the link and paste it after the "add origin" don't forget to add the .git at the end)
git push -u origin master
( This will pushed either your file or document to github if it's your first time pushing the file)
UPDATING YOUR GITHUB REPO
(If you edited your code on your IDE and you want to update it on you GitHub repo, so that your code is up to date)
git add filename.html
git commit
git push.
I am Anowai James a enthusiastic web advocate, a tech preacher and a pythonister.
No comments:
Post a Comment