diff --git a/_2024/ZZPeng-ROOT/README.md b/_2024/ZZPeng-ROOT/README.md new file mode 100644 index 00000000..3f4267e4 --- /dev/null +++ b/_2024/ZZPeng-ROOT/README.md @@ -0,0 +1,11 @@ +# ZZPeng-ROOT's PR + +## Cmake 和 catkin 的使用 + +目前为止,在本课程中我学会了```cmake```和```catkin```的基本使用 + +还学会了```git```的使用 + +## 个人意志的磨炼 + +感觉对我个人的最大提升就是磨炼了我的意志,在一次次的重装系统中被逼疯 diff --git a/_2024/ZZPeng-ROOT/Tasks.md b/_2024/ZZPeng-ROOT/Tasks.md new file mode 100644 index 00000000..acba326b --- /dev/null +++ b/_2024/ZZPeng-ROOT/Tasks.md @@ -0,0 +1,45 @@ +# Final Project + +## 回退修改 + +1. 使用```checkout```命令 +2. 使用```restore```命令 + +![Task1](images/task1.png) + +## 回退版本 + +假设我们已经提交的**bd5f5c**是我们想要撤回的 + +![Task2-1](images/task2-1.png) + +1. 使用```revert```命令 + + ![Task2-2](images/task2-2.png) + +2. 使用```reset```命令 + +![Task2-3](images/task2-3.png) + +> [!NOTE] +> +> 需要注意的是: +> +> ```revert```会新建一个提交将之前的操作反转过来 +> ```reset```则是直接将之前的提交丢弃掉 +> +> ```revert```适用于之前的提交已经push的情况,```reset```适用于之前的提交还在本地,当然本地也可以使用```revert``` + +## 合并分支 + +1. 使用```rebase```命令 + + ![Task3-1](images/task3-1.png) + +2. 使用```cherry-pick```命令 + + ![Task3-2](images/task3-2.png) + +3. 当然,最常用的还是```merge```命令 + + ![Task3-3](images/task3-3.png) diff --git a/_2024/ZZPeng-ROOT/images/task1.png b/_2024/ZZPeng-ROOT/images/task1.png new file mode 100644 index 00000000..a6a1c200 Binary files /dev/null and b/_2024/ZZPeng-ROOT/images/task1.png differ diff --git a/_2024/ZZPeng-ROOT/images/task2-1.png b/_2024/ZZPeng-ROOT/images/task2-1.png new file mode 100644 index 00000000..d6ee5424 Binary files /dev/null and b/_2024/ZZPeng-ROOT/images/task2-1.png differ diff --git a/_2024/ZZPeng-ROOT/images/task2-2.png b/_2024/ZZPeng-ROOT/images/task2-2.png new file mode 100644 index 00000000..626ed5e1 Binary files /dev/null and b/_2024/ZZPeng-ROOT/images/task2-2.png differ diff --git a/_2024/ZZPeng-ROOT/images/task2-3.png b/_2024/ZZPeng-ROOT/images/task2-3.png new file mode 100644 index 00000000..be468379 Binary files /dev/null and b/_2024/ZZPeng-ROOT/images/task2-3.png differ diff --git a/_2024/ZZPeng-ROOT/images/task3-1.png b/_2024/ZZPeng-ROOT/images/task3-1.png new file mode 100644 index 00000000..4064ab9f Binary files /dev/null and b/_2024/ZZPeng-ROOT/images/task3-1.png differ diff --git a/_2024/ZZPeng-ROOT/images/task3-2.png b/_2024/ZZPeng-ROOT/images/task3-2.png new file mode 100644 index 00000000..3c89b17f Binary files /dev/null and b/_2024/ZZPeng-ROOT/images/task3-2.png differ diff --git a/_2024/ZZPeng-ROOT/images/task3-3.png b/_2024/ZZPeng-ROOT/images/task3-3.png new file mode 100644 index 00000000..60f9bf73 Binary files /dev/null and b/_2024/ZZPeng-ROOT/images/task3-3.png differ diff --git a/_2024/ZZPeng-ROOT/test.cpp b/_2024/ZZPeng-ROOT/test.cpp new file mode 100644 index 00000000..ccf65660 --- /dev/null +++ b/_2024/ZZPeng-ROOT/test.cpp @@ -0,0 +1,8 @@ +#include + +using namespace std; + +int main() { + cout << "Hello World!" << endl; + return 0; +}