Home Create a blog free on github using jekyll

Create a blog free on github using jekyll

Use ssh keys to manage github without using access tokens or passwords

Generate ssh key pair in your terminal

ssh-keygen -t rsa -b 4096 -C "kabeallu@protonmail.com"

Start ssh-agent in the background

eval "$(ssh-agent -s)"

add private key to ssh-agent

ssh-add ~/.ssh/id_rsa.pub

Test ssh connection

ssh -T git@github.com

sub heading needed

git remote set-url origin git@github.com:kabeallu/notes.git

now we can push pull without username or password

Create a directory to store your site files

mkdir ~/github/notes

Change into that new directory and initiate git

cd ~/github/notes && git init
git remote add origin https://github.com/kabeallu/notes.git

Create Jekyll site

jekyll new .

git config –global user.name “Your Name” git config –global user.email “you@example.com”

Add all files and directories ready to be pushed to your repo

git add -A

Add a commit comment to your push

git commit -m 'push'

push the files to your github accout

git push -u origin main

If you encounter an error, It may need to be forced to overwrite existing files.

git push -u origin main --force


First, remove all files from your Git repository using: git rm -r *

After that you should commit: using git commit -m “your comment”

After that you push using: git push (that’s update the origin repository)

To verify your status using: git status

After that you can copy all your local files in the local Git folder, and you add them to the Git repository using: git add -A

You commit (git commit -m “your comment” and you push (git push)

This post is licensed under CC BY 4.0 by the author.

Trending Tags