|
@@ -1,4 +1,4 @@
|
|
|
-<local:MyHint Margin="0,0,0,15" Text="该帮助页面还需要根据规范重新整理格式,优化排版与文案。如果你感兴趣也可以来帮帮忙!, 以VSCode教程和Git教程为模板" IsWarn="False" />
|
|
|
|
|
|
|
+<local:MyHint Margin="0,0,0,15" Text="该帮助页面还需要根据规范重新整理格式,优化排版与文案。如果你感兴趣也可以来帮帮忙!" IsWarn="False" />
|
|
|
|
|
|
|
|
<local:MyCard Title="下载和配置 IntelliJ IDEA">
|
|
<local:MyCard Title="下载和配置 IntelliJ IDEA">
|
|
|
<StackPanel Margin="25,40,23,15">
|
|
<StackPanel Margin="25,40,23,15">
|
|
@@ -17,53 +17,56 @@
|
|
|
<TextBlock Margin="0,0,0,4" LineHeight="17" Text="如果要在 IntelliJ IDEA 中使用 Git 工具,你需要按照以下步骤进行相关设置:" />
|
|
<TextBlock Margin="0,0,0,4" LineHeight="17" Text="如果要在 IntelliJ IDEA 中使用 Git 工具,你需要按照以下步骤进行相关设置:" />
|
|
|
|
|
|
|
|
<TextBlock Margin="0,0,0,4" LineHeight="17"
|
|
<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',最后在 'Key' 区域粘贴步骤2中复制的 SSH 公钥,并为其添加标题。" />
|
|
|
|
|
|
|
+ <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">
|
|
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
|
Text="访问 GitHub 设置" EventType="打开网页" EventData="https://github.com/settings/keys" />
|
|
Text="访问 GitHub 设置" EventType="打开网页" EventData="https://github.com/settings/keys" />
|
|
|
</StackPanel>
|
|
</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">
|
|
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
|
- Text="设置 Git 用户名" EventType="复制文本" EventData="git config --global user.name '你的名称'" />
|
|
|
|
|
|
|
+ Text="设置 Git 用户名" EventType="复制文本" EventData="git config --global user.name '你的名称' " />
|
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
|
- Text="设置 Git 邮箱" EventType="复制文本" EventData="git config --global user.email '你的邮箱'" />
|
|
|
|
|
|
|
+ Text="设置 Git 邮箱" EventType="复制文本" EventData="git config --global user.email '你的邮箱' " />
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</local:MyCard>
|
|
</local:MyCard>
|
|
|
|
|
|
|
|
<local:MyCard Title="利用 Git 获取代码库并进行版本控制">
|
|
<local:MyCard Title="利用 Git 获取代码库并进行版本控制">
|
|
|
<StackPanel Margin="25,40,23,15">
|
|
<StackPanel Margin="25,40,23,15">
|
|
|
- <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 进行编写。首先,在 Terminal 中输入 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">
|
|
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
|
Text="git add ." EventType="复制文本" EventData="git add ." />
|
|
Text="git add ." EventType="复制文本" EventData="git add ." />
|
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
|
- Text="git commit -m '提交信息'" EventType="复制文本" EventData="git commit -m '提交信息'" />
|
|
|
|
|
|
|
+ Text="git commit -m '提交信息' " EventType="复制文本" EventData="git commit -m '提交信息' " />
|
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
|
Text="git push" EventType="复制文本" EventData="git push" />
|
|
Text="git push" EventType="复制文本" EventData="git push" />
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
|
|
|
|
- <TextBlock Margin="0,5,0,4" LineHeight="17" Text="在 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">
|
|
<StackPanel Height="35" Margin="0,4,0,10" Orientation="Horizontal">
|
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
<local:MyButton MinWidth="140" Padding="13,0" Margin="0,0,20,0" HorizontalAlignment="Left"
|
|
|
Text="新建合并请求" EventType="打开网页" EventData="https://github.com/LTCatt/PCL2Help/compare" />
|
|
Text="新建合并请求" EventType="打开网页" EventData="https://github.com/LTCatt/PCL2Help/compare" />
|
|
|
</StackPanel>
|
|
</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>
|
|
</StackPanel>
|
|
|
</local:MyCard>
|
|
</local:MyCard>
|
|
|
|
|
|