From 2adb2fb2799b83a41249a5f52e9705a4597bb5be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?BadVortex=E6=81=B6=E6=BC=A9?= <11550885+badvortex@user.noreply.gitee.com> Date: Sun, 26 Mar 2023 02:51:45 +0000 Subject: [PATCH] =?UTF-8?q?!14=202023=E5=B9=B4=E7=AC=AC=E4=B8=89=E6=AC=A1?= =?UTF-8?q?=E7=A0=94=E8=AE=A8=E4=BC=9A=E6=95=99=E7=A8=8B=E9=83=BD=E5=86=99?= =?UTF-8?q?=E5=A5=BD=E4=BA=86=20*=202023=E5=B9=B4=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=AC=A1=E7=A0=94=E8=AE=A8=E4=BC=9A=E6=95=99=E7=A8=8B=E9=83=BD?= =?UTF-8?q?=E5=86=99=E5=A5=BD=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- XmacsLabs/X202303.tm | 165 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 159 insertions(+), 6 deletions(-) diff --git a/XmacsLabs/X202303.tm b/XmacsLabs/X202303.tm index d4e6029..33bac57 100644 --- a/XmacsLabs/X202303.tm +++ b/XmacsLabs/X202303.tm @@ -7,13 +7,126 @@ - - - https://gitee.com/XmacsLabs/planet/issues + https://gitee.com/XmacsLabs/planet/issues/I6JNE2 - + + + 1) You already have a Gitee account. + + 2) Open and run the following command: + + <\verbatim-code> + git --version + + + + + 1) We need to generate SSH key by run the following command: + + <\verbatim-code> + ssh-keygen -t ed25519 -C "xxxxx@xxxxx.com" \ + + # 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. + + * Just press Enter three times, and the ssh key will be generated, and + . + + \; + + 2) We can print SSH public key using the command: + + <\verbatim-code> + cat ~/.ssh/id_ed25519.pub + + + 3) Copy the SSH public key to your clipboard. + + 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 . + + + + * I already have the developer permission of the warehouse + "XmacsLabs/planet". + + 1) Go to the page of "XmacsLabs/planet", click the + button, switch to SSH, and copy it. + + 2) Return to your home directory in The Terminal using the + command. + + 3) We need to clone the warehouse by run the following command: + + <\verbatim-code> + git clone git@gitee.com:XmacsLabs/planet.git + + + (If prompted, enter YES.) + + + + 1) 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: + + <\verbatim-code> + cd planet + + + 3) We can see which changes have been staged using the command. + + 4) Use the command: + + <\verbatim-code> + git add XmacsLabs/X202303.tm + + + + + 1) Add your own username using the command: + + <\verbatim-code> + git config --global user.name "\<#58A8\>\<#5BA2\>\<#5B9E\>\<#9A8C\>\<#5BA4\>\<#673A\>\<#5668\>\<#4EBA\>" + + + 2) Add your own E-mail using the command: + + <\verbatim-code> + git config --global user.email ``bot@xmacs.net" + + + 3) You can view which changes have been done using the + command: + + <\verbatim-code> + cat ~/.gitconfig + + + + + 1) You can make a commit using the command: + + <\verbatim-code> + git commit -m "2023\<#5E74\>\<#7B2C\>\<#4E09\>\<#6B21\>\<#7814\>\<#8BA8\>\<#4F1A\>" + + + + + 1) You can make a push using the command. + + <\initial> @@ -26,8 +139,15 @@ <\references> <\collection> > + > > - > + > + > + > + > + > + > + > @@ -39,8 +159,41 @@ |math-font-series||2Topic: - how to create a pull-request> |.>>>>|> + 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