diff --git a/docs/Instruction/week01.md b/docs/Instruction/week01.md index e07068c995e0a7167bf2d26513c3695742f6d05c..0c9c581463aec0bffc11087fee55fcb9ce6e0bb0 100644 --- a/docs/Instruction/week01.md +++ b/docs/Instruction/week01.md @@ -87,11 +87,13 @@ Tue|?|Regional Review(Asia)|?|| ### Install (macOS) ``` -% git -version +% git --version git version 2.24.3 (Apple Git-128) -% brew -v +% brew --version Homebrew 3.3.9 +//% brew -v + // If no git and homebrew // Install Homebrew from https://brew.sh/ @@ -131,7 +133,7 @@ id_rsa id_rsa.pub % ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/Users/yuichi/.ssh/id_rsa): -// syntax % ssh-keygen -t rsa -f keyname -C "comment" +// syntax % ssh-keygen -t rsa -f id_rsa -C "comment" % cd ~ @@ -145,8 +147,22 @@ ssh-rsa AAA....this_is_your_public_key....@.local ``` GitLab > your icon(right up) > Edit profile > SSH Keys(left) > command + v to paste public key +!!! notes + If you want to make more secured ED25519 format key pair + + % cd ~/.ssh + % ssh-keygen -t ed25519 -C "your@email" + % ls + id_ed25519 id_ed25519.pub + + Ref. https://docs.gitlab.com/ee/ssh/index.html + + ### Local repository ``` +% ssh -T git@gitlab.fabcloud.org +Welcome to GitLab, @your_name! + % cd ~ % mkdir repos % cd repos @@ -191,6 +207,14 @@ Control +C Open in Browser [http://127.0.0.1:8000](http://127.0.0.1:8000) +!!! notes + You may need to install mkdocs separately + + % brew install mkdocs + % pip install -r requirements.txt + + + ### Editter #### ATOM @@ -211,7 +235,7 @@ Open in Browser // save % cd ~/repos/student_site -% ls -ls +% ls -la .git % git status % git add .