Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZZPeng-ROOT Project #121

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions _2024/ZZPeng-ROOT/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ZZPeng-ROOT's PR

## Cmake 和 catkin 的使用

目前为止,在本课程中我学会了```cmake```和```catkin```的基本使用

还学会了```git```的使用

## 个人意志的磨炼

感觉对我个人的最大提升就是磨炼了我的意志,在一次次的重装系统中被逼疯
45 changes: 45 additions & 0 deletions _2024/ZZPeng-ROOT/Tasks.md
Original file line number Diff line number Diff line change
@@ -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)
Binary file added _2024/ZZPeng-ROOT/images/task1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _2024/ZZPeng-ROOT/images/task2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _2024/ZZPeng-ROOT/images/task2-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _2024/ZZPeng-ROOT/images/task2-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _2024/ZZPeng-ROOT/images/task3-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _2024/ZZPeng-ROOT/images/task3-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _2024/ZZPeng-ROOT/images/task3-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions _2024/ZZPeng-ROOT/test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include <iostream>

using namespace std;

int main() {
cout << "Hello World!" << endl;
return 0;
}