|
|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
<local:MyCard Title="下载和配置 IntelliJ IDEA">
|
|
|
<StackPanel Margin="25,40,23,15">
|
|
|
- <TextBlock Margin="0,0,0,4" LineHeight="17" Text="IntelliJ IDEA 是目前业界主流的 Java 集成开发环境。你可以点击下方按钮来下载 IntelliJ IDEA 或访问其官方网站。" />
|
|
|
+ <TextBlock Margin="0,0,0,4" LineHeight="17" Text="IntelliJ IDEA 是主流的 Java 集成开发环境,适用于商业和开源开发。你可以通过点击下面的按钮来进行下载或访问其官方网站。" />
|
|
|
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
|
Text="下载 IntelliJ IDEA" EventType="打开网页" EventData="https://www.jetbrains.com/zh-cn/idea/download/?section=windows" />
|
|
|
@@ -14,21 +14,21 @@
|
|
|
|
|
|
<local:MyCard Title="在 IntelliJ IDEA 中设置并使用 Git 版本控制">
|
|
|
<StackPanel Margin="25,40,23,15">
|
|
|
- <TextBlock Margin="0,0,0,4" LineHeight="17" Text="为了在 IntelliJ IDEA 中使用 Git 工具,你需要进行一些必要的设置,包括安装 Git 插件、生成 SSH 公钥和私钥、在 GitHub 中添加 SSH Key,以及设置 Git 用户信息。具体操作步骤如下:" />
|
|
|
+ <TextBlock Margin="0,0,0,4" LineHeight="17" Text="如果要在 IntelliJ IDEA 中使用 Git 工具,你需要按照以下步骤进行相关设置:" />
|
|
|
|
|
|
<TextBlock Margin="0,0,0,4" LineHeight="17"
|
|
|
- Text="1. 安装 Git Integration 插件。需先打开 IntelliJ IDEA,然后依次点击“File”-->“Settings”-->“Plugins”,在弹出的搜索框内输入“Git Integration”,找到插件并点击安装。" />
|
|
|
+ Text="1. 安装 Git Integration 插件。首先打开 IntelliJ IDEA,然后依次点击“File”-->“Settings”-->“Plugins”,在出现的搜索框内输入“Git Integration”,找到插件并进行安装。" />
|
|
|
|
|
|
- <TextBlock Margin="0,0,0,4" LineHeight="17" Text="2. 生成 SSH 公钥和私钥。你需要在 'Terminal' 中输入 `ssh-keygen -t rsa -C '你的邮箱'` 命令来生成 SSH 公钥和私钥,然后打开生成的 id_rsa.pub 文件,并复制文件中的内容。" />
|
|
|
+ <TextBlock Margin="0,0,0,4" LineHeight="17" Text="2. 生成 SSH 公钥和私钥。打开 'Terminal',并输入 `ssh-keygen -t rsa -C '你的邮箱'` 以生成 SSH 公钥和私钥,然后打开生成的 id_rsa.pub 文件,并复制文件中的内容。" />
|
|
|
|
|
|
- <TextBlock Margin="0,0,0,4" LineHeight="17" Text="3. 把第二步中得到的 SSH 公钥添加到 GitHub 上。点击下方的“访问设置”按钮,然后在 GitHub 设置页面点击 'SSH and GPG keys',再点击 'New SSH Key',最后将复制的 SSH 公钥粘贴到 'Key' 区域,标题任意。" />
|
|
|
+ <TextBlock Margin="0,0,0,4" LineHeight="17" Text="3. 将 SSH 公钥添加到 GitHub。点击下面的“访问设置”按钮,然后在 GitHub 设置页面点击 'SSH and GPG keys',接着点击 'New SSH Key',最后在 'Key' 区域粘贴步骤2中复制的 SSH 公钥,并为其添加标题。" />
|
|
|
|
|
|
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
|
Text="访问 GitHub 设置" EventType="打开网页" EventData="https://github.com/settings/keys" />
|
|
|
</StackPanel>
|
|
|
|
|
|
- <TextBlock Margin="0,5,0,4" LineHeight="17" Text="4. 在 Terminal 中设置 Git 用户信息,需保证你的 Git 邮箱和 SSH 公钥所用的邮箱一致。在当前库中设置用户信息时,可以把最开始的 `--global` 参数去掉。" />
|
|
|
+ <TextBlock Margin="0,5,0,4" LineHeight="17" Text="4. 在 Terminal 中设置 Git 用户信息,需确保 Git 邮箱和 SSH 公钥使用的是相同的邮箱。如果只对当前库设置用户信息,`--global` 参数可以省略。" />
|
|
|
|
|
|
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
|
@@ -40,13 +40,12 @@
|
|
|
</local:MyCard>
|
|
|
|
|
|
<local:MyCard Title="利用 Git 获取代码库并进行版本控制">
|
|
|
- <TextBlock Margin="0,5,0,4" LineHeight="17" Text="最后,你需要知道如何获取代码库,使用 IntelliJ IDEA 进行编写,然后将更改提交到 GitHub。具体步骤如下:" />
|
|
|
|
|
|
- <TextBlock Margin="0,5,0,4" LineHeight="17" Text="1. 克隆仓库到本地。在 Terminal 中,输入`git clone https://github.com/LTCatt/PCL2Help.git`命令。这将会创建一个名为 'PCL2Help' 的文件夹,并将代码仓库的内容下载到该文件夹。" />
|
|
|
+ <TextBlock Margin="0,5,0,4" LineHeight="17" Text="1. 克隆仓库到本地。打开 Terminal,输入git clone https://github.com/LTCatt/PCL2Help.git,此操作会在本地创建一个名为 'PCL2Help' 的文件夹,并将代码仓库的内容下载到这个文件夹。" />
|
|
|
|
|
|
- <TextBlock Margin="0,5,0,4" LineHeight="17" Text="2. 使用 IntelliJ IDEA 进行编写。在终端中使用 `cd PCL2Help` 将工作目录切换到代码仓库目录,然后打开 IntelliJ IDEA,选择打开现有项目,再选择刚刚下载下来的 'PCL2Help' 文件夹。在编写好代码后,保存更改。" />
|
|
|
+ <TextBlock Margin="0,5,0,4" LineHeight="17" Text="2. 使用 IntelliJ IDEA 进行编写。首先,在 Terminal 中输入 cd PCL2Help 切换到代码仓库目录,然后打开 IntelliJ IDEA,选择打开已有的项目,选择刚刚下载的 'PCL2Help' 文件夹,编写代码并保存更改。" />
|
|
|
|
|
|
- <TextBlock Margin="0,5,0,4" LineHeight="17" Text="3. 将更改提交到 GitHub。在 Terminal 中,键入并运行下面的三个命令。这些命令会将你的新更改添加到暂存区,再将其提交,并推送至远程仓库。" />
|
|
|
+ <TextBlock Margin="0,5,0,4" LineHeight="17" Text="3. 将更改提交到 GitHub。在 Terminal 中,运行以下三个命令,将新更改添加到暂存区,然后提交并推送到远程仓库。" />
|
|
|
|
|
|
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
|
@@ -57,14 +56,14 @@
|
|
|
Text="git push" EventType="复制文本" EventData="git push" />
|
|
|
</StackPanel>
|
|
|
|
|
|
- <TextBlock Margin="0,5,0,4" LineHeight="17" Text="4. 在 GitHub 网站上的源代码仓库创建新的 Pull Request。点击下方的'新建 Pull Request'按钮,填写标题和描述,然后提交。要注意,在创建 Pull Request 之前,请确保你的分支与源仓库是同步的。" />
|
|
|
+ <TextBlock Margin="0,5,0,4" LineHeight="17" Text="在 GitHub 源代码仓库页面创建新的 Pull Request。点击下方的'新建 Pull Request'按钮,填写标题和描述,然后提交。在创建 Pull Request 之前,请确保你的分支与源仓库是同步的。" />
|
|
|
|
|
|
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
|
Text="新建合并请求" EventType="打开网页" EventData="https://github.com/LTCatt/PCL2Help/compare" />
|
|
|
</StackPanel>
|
|
|
|
|
|
- <TextBlock Margin="0,5,0,4" LineHeight="17" Text="要同步源仓库和你的分支,需要打开你的 Fork 仓库页面,点击 'Fetch upstream',然后点击 'Fetch and merge'。" />
|
|
|
+ <TextBlock Margin="0,5,0,4" LineHeight="17" Text="若需同步源仓库和你的分支,打开你的 Fork 仓库页面,点击 'Fetch upstream',然后点击 'Fetch and merge'。" />
|
|
|
</StackPanel>
|
|
|
</local:MyCard>
|
|
|
|