mirror of https://gitee.com/XmacsLabs/planet.git
!18 improve X202303 and add X202305
This commit is contained in:
parent
a01b4b4b6e
commit
c432a98ae8
|
@ -13,118 +13,135 @@
|
|||
|
||||
<subsection|Some simple preparations>
|
||||
|
||||
1) You already have a Gitee account.
|
||||
<\enumerate>
|
||||
<item>You already have a Gitee account.
|
||||
|
||||
2) Open <strong|the terminal> and run the following command:
|
||||
<item>Open <strong|the terminal> and run the following command:
|
||||
|
||||
<\verbatim-code>
|
||||
git --version
|
||||
</verbatim-code>
|
||||
<\shell-code>
|
||||
git --version
|
||||
</shell-code>
|
||||
</enumerate>
|
||||
|
||||
<subsection|Generate and add SSH public key>
|
||||
|
||||
1) We need to generate SSH key by run the following command:
|
||||
<\enumerate>
|
||||
<item>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...
|
||||
</verbatim-code>
|
||||
# Generating public/private ed25519 key pair...
|
||||
</shell-code>
|
||||
|
||||
* 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
|
||||
<strong|no password required>.
|
||||
* Just press Enter three times, and the ssh key will be generated, and
|
||||
<strong|no password required>.
|
||||
|
||||
\;
|
||||
<item>We can print SSH public key using the <verbatim|cat> command:
|
||||
|
||||
2) We can print SSH public key using the <verbatim|cat> command:
|
||||
<\shell-code>
|
||||
cat ~/.ssh/id_ed25519.pub
|
||||
</shell-code>
|
||||
|
||||
<\verbatim-code>
|
||||
cat ~/.ssh/id_ed25519.pub
|
||||
</verbatim-code>
|
||||
<item>Copy the SSH public key to your clipboard.
|
||||
|
||||
3) Copy the SSH public key to your clipboard.
|
||||
<item>In the upper-right corner of any page of Gitee, click your profile
|
||||
photo, then click<nbsp><strong|Settings>. In the side bar, click
|
||||
<strong|SSH public key>.
|
||||
|
||||
4) In the upper-right corner of any page of Gitee, click your profile
|
||||
photo, then click<nbsp><strong|Settings>. In the side bar, click
|
||||
<strong|SSH public key>.
|
||||
|
||||
5) Paste your public key into the Key field. Click <strong|Add SSH key>.
|
||||
<item>Paste your public key into the Key field. Click <strong|Add SSH
|
||||
key>.
|
||||
</enumerate>
|
||||
|
||||
<subsection|Git clone>
|
||||
|
||||
* I already have the developer permission of the warehouse
|
||||
"XmacsLabs/planet".
|
||||
<\enumerate>
|
||||
<item>Go to the <strong|Code> page of "XmacsLabs/planet", click the
|
||||
<strong|Clone/Download> button, switch to SSH, and copy it.
|
||||
|
||||
1) Go to the <strong|Code> page of "XmacsLabs/planet", click the
|
||||
<strong|Clone/Download> button, switch to SSH, and copy it.
|
||||
<item>Return to your home directory in The Terminal using the
|
||||
<verbatim|cd> command.
|
||||
|
||||
2) Return to your home directory in The Terminal using the <verbatim|cd>
|
||||
command.
|
||||
<item>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>
|
||||
|
||||
<\verbatim-code>
|
||||
git clone git@gitee.com:XmacsLabs/planet.git
|
||||
</verbatim-code>
|
||||
|
||||
(If prompted, enter YES.)
|
||||
(If prompted, enter YES.)
|
||||
</enumerate>
|
||||
|
||||
<subsection|Git add>
|
||||
|
||||
1) Open the planet folder by file manager, and paste the files to be added
|
||||
here.
|
||||
<\itemize>
|
||||
<item>Open the planet folder by file manager, and paste the files to be
|
||||
added here.
|
||||
|
||||
2) Enter the directory in The Terminal using the <verbatim|cd> command:
|
||||
<item>Enter the directory in The Terminal using the <verbatim|cd>
|
||||
command:
|
||||
|
||||
<\verbatim-code>
|
||||
cd planet
|
||||
</verbatim-code>
|
||||
<\verbatim-code>
|
||||
cd planet
|
||||
</verbatim-code>
|
||||
|
||||
3) We can see which changes have been staged using the <verbatim|git
|
||||
status> command.
|
||||
<item>We can see which changes have been staged using the <verbatim|git
|
||||
status> command.
|
||||
|
||||
4) Use the <verbatim|git status> command:
|
||||
<item>Use the <verbatim|git status> command:
|
||||
|
||||
<\verbatim-code>
|
||||
git add XmacsLabs/X202303.tm
|
||||
</verbatim-code>
|
||||
<\verbatim-code>
|
||||
git add XmacsLabs/X202303.tm
|
||||
</verbatim-code>
|
||||
</itemize>
|
||||
|
||||
<subsection|Git config>
|
||||
|
||||
1) Add your own username using the <verbatim|git config> command:
|
||||
<\enumerate>
|
||||
<item>Add your own username using the <verbatim|git config> command:
|
||||
|
||||
<\verbatim-code>
|
||||
git config --global user.name "\<#58A8\>\<#5BA2\>\<#5B9E\>\<#9A8C\>\<#5BA4\>\<#673A\>\<#5668\>\<#4EBA\>"
|
||||
</verbatim-code>
|
||||
<\verbatim-code>
|
||||
git config --global user.name "墨客实验室机器人"
|
||||
</verbatim-code>
|
||||
|
||||
2) Add your own E-mail using the <verbatim|git config> command:
|
||||
<item>Add your own E-mail using the <verbatim|git config> command:
|
||||
|
||||
<\verbatim-code>
|
||||
git config --global user.email ``bot@xmacs.net"
|
||||
</verbatim-code>
|
||||
<\verbatim-code>
|
||||
git config --global user.email "bot@xmacs.net"
|
||||
</verbatim-code>
|
||||
|
||||
3) You can view which changes have been done using the <verbatim|cat>
|
||||
command:
|
||||
<item>You can view which changes have been done using the <verbatim|cat>
|
||||
command:
|
||||
|
||||
<\verbatim-code>
|
||||
cat ~/.gitconfig
|
||||
</verbatim-code>
|
||||
<\verbatim-code>
|
||||
cat ~/.gitconfig
|
||||
</verbatim-code>
|
||||
</enumerate>
|
||||
|
||||
<subsection|Git commit>
|
||||
|
||||
1) You can make a commit using the <verbatim|git commit -m> command:
|
||||
You can make a commit using the <verbatim|git commit -m> command:
|
||||
|
||||
<\verbatim-code>
|
||||
git commit -m "2023\<#5E74\>\<#7B2C\>\<#4E09\>\<#6B21\>\<#7814\>\<#8BA8\>\<#4F1A\>"
|
||||
git commit -m "2023年第三次研讨会"
|
||||
</verbatim-code>
|
||||
|
||||
<subsection|Git push>
|
||||
|
||||
1) You can make a push using the <verbatim|git push origin main> 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.
|
||||
</note*>
|
||||
|
||||
You can make a push using the <verbatim|git push origin main> command. The
|
||||
pull request will be generated automatically.
|
||||
|
||||
<section|Topic: to purchase a Loongson laptop>
|
||||
</body>
|
||||
|
|
|
@ -0,0 +1,81 @@
|
|||
<TeXmacs|2.1.2>
|
||||
|
||||
<style|<tuple|seminar|comment>>
|
||||
|
||||
<\body>
|
||||
<doc-data|<doc-title|Seminar X202305>|<doc-author|<author-data|<author-name|Darcy
|
||||
Shen>>>>
|
||||
|
||||
<section|Welcome>
|
||||
|
||||
<section|Topic>
|
||||
</body>
|
||||
|
||||
<\initial>
|
||||
<\collection>
|
||||
<associate|info-flag|detailed>
|
||||
<associate|page-medium|paper>
|
||||
</collection>
|
||||
</initial>
|
||||
|
||||
<\references>
|
||||
<\collection>
|
||||
<associate|auto-1|<tuple|1|2|X202303.tm>>
|
||||
<associate|auto-10|<tuple|3|4|X202303.tm>>
|
||||
<associate|auto-2|<tuple|2|2|X202303.tm>>
|
||||
<associate|auto-3|<tuple|2.1|2|X202303.tm>>
|
||||
<associate|auto-4|<tuple|2.2|2|X202303.tm>>
|
||||
<associate|auto-5|<tuple|2.3|3|X202303.tm>>
|
||||
<associate|auto-6|<tuple|2.4|3|X202303.tm>>
|
||||
<associate|auto-7|<tuple|2.5|4|X202303.tm>>
|
||||
<associate|auto-8|<tuple|2.6|4|X202303.tm>>
|
||||
<associate|auto-9|<tuple|2.7|4|X202303.tm>>
|
||||
</collection>
|
||||
</references>
|
||||
|
||||
<\auxiliary>
|
||||
<\collection>
|
||||
<\associate|toc>
|
||||
<vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|1<space|2spc>Welcome>
|
||||
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
|
||||
<no-break><pageref|auto-1><vspace|0.5fn>
|
||||
|
||||
<vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|2<space|2spc>Topic:
|
||||
How to create a pull request in Gitee?>
|
||||
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
|
||||
<no-break><pageref|auto-2><vspace|0.5fn>
|
||||
|
||||
<with|par-left|<quote|1tab>|2.1<space|2spc>Some simple preparations
|
||||
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
|
||||
<no-break><pageref|auto-3>>
|
||||
|
||||
<with|par-left|<quote|1tab>|2.2<space|2spc>Generate and add SSH public
|
||||
key <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
|
||||
<no-break><pageref|auto-4>>
|
||||
|
||||
<with|par-left|<quote|1tab>|2.3<space|2spc>Git clone
|
||||
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
|
||||
<no-break><pageref|auto-5>>
|
||||
|
||||
<with|par-left|<quote|1tab>|2.4<space|2spc>Git add
|
||||
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
|
||||
<no-break><pageref|auto-6>>
|
||||
|
||||
<with|par-left|<quote|1tab>|2.5<space|2spc>Git config
|
||||
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
|
||||
<no-break><pageref|auto-7>>
|
||||
|
||||
<with|par-left|<quote|1tab>|2.6<space|2spc>Git commit
|
||||
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
|
||||
<no-break><pageref|auto-8>>
|
||||
|
||||
<with|par-left|<quote|1tab>|2.7<space|2spc>Git push
|
||||
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
|
||||
<no-break><pageref|auto-9>>
|
||||
|
||||
<vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|3<space|2spc>Topic:
|
||||
to purchase a Loongson laptop> <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
|
||||
<no-break><pageref|auto-10><vspace|0.5fn>
|
||||
</associate>
|
||||
</collection>
|
||||
</auxiliary>
|
|
@ -288,9 +288,11 @@
|
|||
<label|sec:2023><section*|2023年会议记录>
|
||||
|
||||
<\itemize>
|
||||
<item>BadVortex: <gitlink|X202303>
|
||||
<item>Da: <gitlink|X202305>(2023/04/02 20:30:00)
|
||||
|
||||
<item>Yufeng: <gitlink|X202302>
|
||||
<item>BadVortex: <gitlink|X202303>(<hlink|B站回放|https://www.bilibili.com/video/BV17v4y1V7fD/>)
|
||||
|
||||
<item>Yufeng: <gitlink|X202302>(<hlink|B站回放|https://www.bilibili.com/video/BV1Ce4y1c7xb/>)
|
||||
|
||||
<item>Da: <gitlink|X202301>(没有录制,主要讨论如何开展研讨会这个话题)
|
||||
</itemize>
|
||||
|
@ -343,7 +345,6 @@
|
|||
<associate|第五次研讨会|<tuple|?|?>>
|
||||
<associate|第八次研讨会|<tuple|?|?>>
|
||||
<associate|第六次研讨会|<tuple|?|?>>
|
||||
<associate|第四次研讨会|<tuple|?|?>>
|
||||
<associate|第四次研讨会(跳过)|<tuple|?|?>>
|
||||
<associate|auto-1|<tuple|?|?>>
|
||||
<associate|auto-2|<tuple|<with|mode|<quote|math>|<rigid|\<circ\>>>|?>>
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
<TeXmacs|2.1.2>
|
||||
|
||||
<style|<tuple|generic|chinese>>
|
||||
|
||||
<\body>
|
||||
<with|color|dark red|墨者实验室><with|color|dark
|
||||
green|墨客实验室>
|
||||
|
||||
<with|color|dark red|墨者><with|color|dark green|墨客>实验室
|
||||
|
||||
墨<with|color|dark red|者><with|color|dark green|客>实验室
|
||||
</body>
|
||||
|
||||
<initial|<\collection>
|
||||
</collection>>
|
Loading…
Reference in New Issue