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