I Need to Memorize Github Pages and git commands

It's 3:30AM and I am doing this chip explorer and IC explorer project and because the various coding AI model won't run, and they won't solve my coding task I gave them, it took me so long time to finally have the files for testing(testing only). Had a tea and fried rice before I came to know that my files were finally made ready by one of my favorite free AI model for coding. Tea is getting cold while I am writing this. So next I had to upload the files to Github. So I remember that large files cannot be uploaded with the provided default uploading process and so back then, a week ago, I had used git for the first time to upload the files. I wanted to learn Github and git commands because they are so normal for coders and professionals and I think learning it now would be smartest step. By getting comfortable with Git and GitHub early, I can avoid confusion later and build habits that professionals rely on every day.

And so, this time I wanted to record the git command to upload files so that I don't forget the commands to create a git repository and then upload the file using git command:

git clone https://github.com/YOUR_USERNAME/ic-explorer-assets.git
cd ic-explorer-assets
# Copy your files here
git add ic-explorer-core.css ic-explorer-engine.js
git commit -m "Initial upload"
git push origin main
After that I had to create Github Page and the way to do it I have taken a screen shot which is below. Basically we have to turn on the main branch, that is turn on so that main branch is enabled because the files that were uploaded previously resides in that main branch under the newly created repository. This is how I am understanding, correct me if I am wrong, if anybody is reading this. 

github pages

This is actually I think my 2nd time I am doing this but I forget, I have habit not to think too much when I am following tutorial or when I am trying to reach my aim fast. So that is why I am recording this note in this diary.


Post a Comment

Previous Post Next Post