Skip to content

Commit

Permalink
[+] Final Project Finished - ZZPeng-ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron-1337 committed Nov 5, 2024
1 parent 49e5a78 commit 55a187e
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
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/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.

0 comments on commit 55a187e

Please sign in to comment.