Tag: github
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
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.
・Select SSH and GPG Keys
・Click New SSH Key button to create new SSH Key
・Enter the title in the Title filed and your public key from the above process in the Key field
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
Adding a new SSH key to your GitHub account
Adding a new SSH key to your GitHub account
Before adding a new SSH key to your GitHub account, you should have:
Jekyll ดีเปล่า?
ทำตามนี้เลย Step by Step Tutorial แต่รันบน Ubuntu (bash on WSL2)
-
- Installation Guide –> Installation via Bash on Windows 10
Ref: Windows Subsystem for Linux Installation Guide for Windows 10 - Quickstart (Create a blog)
- Create a new Jekyll site at ./Incomplete by following –> Instructions (use “Incomplete” instead of “myblog”)
- Step by Step Tutorial (Create a site)
- Installation Guide –> Installation via Bash on Windows 10
setting-up-a-github-pages-site-with-jekyll
Others:
- Import your old & busted site or blog for use with Jekyll
- Migrate from WordPress to Jekyll
- Configuring a custom domain for your GitHub Pages site
- Getting started with GitHub Pages
- Setting up a GitHub Pages site with Jekyll
- ☆☆My github profile☆☆彡
Other Refs for zsh (upgrading from Bash to Z-shell):
- What is Oh My Zsh?
- Getting started with Zsh
- 10 Zsh Tips & Tricks: Configuration, Customization & Usage←ใช้อันนี้ดูการ Install zsh and oh-my-zsh
บทความต่างๆ