git error: remote origin already exists

Sometime when we initialize the Local Repo, we get error: remote origin already exists.
The following step is solution.
Initialize the current folder as a Git repo:
bitnami@debian:~$ git init
bitnami@debian:~$ git remote add origin [email protected]:username/repostioryname.git
Then, error occurs:
error: remote origin already exists.
We need to remove the older origin by:
bitnami@debian:~$ git remote rm origin
Then, add the origin again:
bitnami@debian:~$ git remote add origin [email protected]:username/repostioryname.git
Add files:
bitnami@debian:~$ git add .
Commit with the descriptive message:
bitnami@debian:~$ git commit -m "Comment message"
Push the changes:
bitnami@debian:~$ git push -u origin master

Ref:
gitのエラー remote origin already existsの解決方法

How to add SSH Key to GitHub Account (application Bitnami Django)

Creat an SSH Key,
bitnami@debian:~$ ssh-keygen -t rsa -b 4096 -C "[email protected]"Substutute [email protected] with your email address.

・Press Enter to accept the default file location (/home/bitnami/.ssh/id_rsa).

・Enter the secure passphrase (password –> same as the GitHub account).

・Enter the command to display the contents of the generated public key,
bitnami@debian:~$ cat /home/bitnami/.ssh/id_rsa.pub
Add this public key to your GitHub Account.
Log into your GitHub Account.

・Click your avartar and choose settings.
BD_GitHub_SSH Key1

・Select SSH and GPG Keys
BD_GitHub_Add SSH Key_2

・Click New SSH Key button to create new SSH Key
BD_GitHub_SSH Key_3

・Enter the title in the Title filed and your public key from the above process in the Key field
BD_GitHub_SSH Key_4

Ref:
How to Add SSH Keys to Your GitHub Account

Now, you can process the commit your work.
bitnami@debian:~$ git status
bitnami@debian:~$ git add -A
bitnami@debian:~$ git commit -m "Any comment..."
bitnami@debian:~$ git push -u origin master

Jekyll ดีเปล่า?

ทำตามนี้เลย Step by Step Tutorial แต่รันบน Ubuntu (bash on WSL2)

    1. Installation Guide –> Installation via Bash on Windows 10
      Ref: Windows Subsystem for Linux Installation Guide for Windows 10
    2. Quickstart (Create a blog)
      • Create a new Jekyll site at ./Incomplete by following –> Instructions (use “Incomplete” instead of “myblog”)
    3. Step by Step Tutorial (Create a site)

setting-up-a-github-pages-site-with-jekyll

Others:

Other Refs for zsh (upgrading from Bash to Z-shell):

บทความต่างๆ