From c432a98ae84fabaae1205a5f10946851cd3704c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E6=B5=AA=E7=86=8A=E7=8C=AB=E5=84=BF?= Date: Sun, 2 Apr 2023 12:07:57 +0000 Subject: [PATCH] !18 improve X202303 and add X202305 --- XmacsLabs/X202303.tm | 149 +++++++++++++++++++++----------------- XmacsLabs/X202305.tm | 81 +++++++++++++++++++++ XmacsLabs/index.tm | 7 +- XmacsLabs/更名公告.tm | 15 ++++ 4 files changed, 183 insertions(+), 69 deletions(-) create mode 100644 XmacsLabs/X202305.tm create mode 100644 XmacsLabs/更名公告.tm diff --git a/XmacsLabs/X202303.tm b/XmacsLabs/X202303.tm index 33bac57..a8db7ed 100644 --- a/XmacsLabs/X202303.tm +++ b/XmacsLabs/X202303.tm @@ -13,118 +13,135 @@ - 1) You already have a Gitee account. + <\enumerate> + You already have a Gitee account. - 2) Open and run the following command: + Open and run the following command: - <\verbatim-code> - git --version - + <\shell-code> + git --version + + - 1) We need to generate SSH key by run the following command: + <\enumerate> + We need to generate SSH key by run the following command: - <\verbatim-code> - ssh-keygen -t ed25519 -C "xxxxx@xxxxx.com" \ + <\shell-code> + ssh-keygen -t ed25519 -C "xxxxx@xxxxx.com" \ - # Generating public/private ed25519 key pair... - + # Generating public/private ed25519 key pair... + - * The xxxxx@xxxxx.com here is just the name of the generated SSH key, and - does not restrict or require it to be specifically named as a certain - mailbox. + * The xxxxx@xxxxx.com here is just the name of the generated SSH key, and + does not restrict or require it to be specifically named as a certain + mailbox. - * Just press Enter three times, and the ssh key will be generated, and - . + * Just press Enter three times, and the ssh key will be generated, and + . - \; + We can print SSH public key using the command: - 2) We can print SSH public key using the command: + <\shell-code> + cat ~/.ssh/id_ed25519.pub + - <\verbatim-code> - cat ~/.ssh/id_ed25519.pub - + Copy the SSH public key to your clipboard. - 3) Copy the SSH public key to your clipboard. + In the upper-right corner of any page of Gitee, click your profile + photo, then click. In the side bar, click + . - 4) In the upper-right corner of any page of Gitee, click your profile - photo, then click. In the side bar, click - . - - 5) Paste your public key into the Key field. Click . + Paste your public key into the Key field. Click . + - * I already have the developer permission of the warehouse - "XmacsLabs/planet". + <\enumerate> + Go to the page of "XmacsLabs/planet", click the + button, switch to SSH, and copy it. - 1) Go to the page of "XmacsLabs/planet", click the - button, switch to SSH, and copy it. + Return to your home directory in The Terminal using the + command. - 2) Return to your home directory in The Terminal using the - command. + We need to clone the warehouse by run the following command: - 3) We need to clone the warehouse by run the following command: + <\verbatim-code> + git clone git@gitee.com:XmacsLabs/planet.git + - <\verbatim-code> - git clone git@gitee.com:XmacsLabs/planet.git - - - (If prompted, enter YES.) + (If prompted, enter YES.) + - 1) Open the planet folder by file manager, and paste the files to be added - here. + <\itemize> + Open the planet folder by file manager, and paste the files to be + added here. - 2) Enter the directory in The Terminal using the command: + Enter the directory in The Terminal using the + command: - <\verbatim-code> - cd planet - + <\verbatim-code> + cd planet + - 3) We can see which changes have been staged using the command. + We can see which changes have been staged using the command. - 4) Use the command: + Use the command: - <\verbatim-code> - git add XmacsLabs/X202303.tm - + <\verbatim-code> + git add XmacsLabs/X202303.tm + + - 1) Add your own username using the command: + <\enumerate> + Add your own username using the command: - <\verbatim-code> - git config --global user.name "\<#58A8\>\<#5BA2\>\<#5B9E\>\<#9A8C\>\<#5BA4\>\<#673A\>\<#5668\>\<#4EBA\>" - + <\verbatim-code> + git config --global user.name "墨客实验室机器人" + - 2) Add your own E-mail using the command: + Add your own E-mail using the command: - <\verbatim-code> - git config --global user.email ``bot@xmacs.net" - + <\verbatim-code> + git config --global user.email "bot@xmacs.net" + - 3) You can view which changes have been done using the - command: + You can view which changes have been done using the + command: - <\verbatim-code> - cat ~/.gitconfig - + <\verbatim-code> + cat ~/.gitconfig + + - 1) You can make a commit using the command: + You can make a commit using the command: <\verbatim-code> - git commit -m "2023\<#5E74\>\<#7B2C\>\<#4E09\>\<#6B21\>\<#7814\>\<#8BA8\>\<#4F1A\>" + git commit -m "2023年第三次研讨会" - 1) You can make a push using the command. + <\note*> + I already have the developer permission of the repository + "XmacsLabs/planet". That's why I can push the code to the main branch and + generate a pull request on Gitee. If you do not have the developer + permission of the repository, you have to learn how to fork a + Gitee/Github project and then create the pull request via the + Gitee/Github web. + + + You can make a push using the command. The + pull request will be generated automatically. diff --git a/XmacsLabs/X202305.tm b/XmacsLabs/X202305.tm new file mode 100644 index 0000000..9b04966 --- /dev/null +++ b/XmacsLabs/X202305.tm @@ -0,0 +1,81 @@ + + +> + +<\body> + |>>> + + + + + + +<\initial> + <\collection> + + + + + +<\references> + <\collection> + > + > + > + > + > + > + > + > + > + > + + + +<\auxiliary> + <\collection> + <\associate|toc> + |math-font-series||1Welcome> + |.>>>>|> + + + |math-font-series||2Topic: + How to create a pull request in Gitee?> + |.>>>>|> + + + |2.1Some simple preparations + |.>>>>|> + > + + |2.2Generate and add SSH public + key |.>>>>|> + > + + |2.3Git clone + |.>>>>|> + > + + |2.4Git add + |.>>>>|> + > + + |2.5Git config + |.>>>>|> + > + + |2.6Git commit + |.>>>>|> + > + + |2.7Git push + |.>>>>|> + > + + |math-font-series||3Topic: + to purchase a Loongson laptop> |.>>>>|> + + + + \ No newline at end of file diff --git a/XmacsLabs/index.tm b/XmacsLabs/index.tm index a181db2..4121ad7 100644 --- a/XmacsLabs/index.tm +++ b/XmacsLabs/index.tm @@ -288,9 +288,11 @@ <\itemize> - BadVortex: + Da: (2023/04/02 20:30:00) - Yufeng: + BadVortex: ) + + Yufeng: Da: (没有录制,主要讨论如何开展研讨会这个话题) @@ -343,7 +345,6 @@ > > > - > > > |>>|?>> diff --git a/XmacsLabs/更名公告.tm b/XmacsLabs/更名公告.tm new file mode 100644 index 0000000..53c662b --- /dev/null +++ b/XmacsLabs/更名公告.tm @@ -0,0 +1,15 @@ + + +> + +<\body> + + + 实验室 + + 墨实验室 + + + +> \ No newline at end of file