Skip to content

Instantly share code, notes, and snippets.

@iggym
Last active January 8, 2025 16:16
Show Gist options
  • Save iggym/9261657 to your computer and use it in GitHub Desktop.
Save iggym/9261657 to your computer and use it in GitHub Desktop.
Github pages via Terminal --- Creating a
from http://pages.github.com/ modified because it didn't work for me
Create a repository
using the web interface -- the name should be username.github.mypages
Clone the repo
Go to terminal,
mkdir mypages, cd mypages
~$git clone https://github.com/username/username.github.mypages
cd usernam.mypages
Add some content
echo "Hello World" > index.html
Push the content
git add --all
~$git commit -m "Initial commit"
~$git push -u origin master
View the Content -- be patient it takes a few minutes to propagate ...
http://username.github.mypages
@MenemenDevs
Copy link

thats not that i searched for but still thanks idk how to push in terminal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment