From e073cddd87ebf975b8b045eb8a5f23db808f58ef Mon Sep 17 00:00:00 2001
From: Mhrooz <cxyoz@outlook.com>
Date: Sat, 17 Aug 2024 21:25:13 +0200
Subject: [PATCH] update 2.6 notes

---
 hack-1.txt             |  1 +
 notes/2.6-git_stash.md | 34 ++++++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 hack-1.txt
 create mode 100644 notes/2.6-git_stash.md

diff --git a/hack-1.txt b/hack-1.txt
new file mode 100644
index 0000000..25735f5
--- /dev/null
+++ b/hack-1.txt
@@ -0,0 +1 @@
+hello.
diff --git a/notes/2.6-git_stash.md b/notes/2.6-git_stash.md
new file mode 100644
index 0000000..0da3151
--- /dev/null
+++ b/notes/2.6-git_stash.md
@@ -0,0 +1,34 @@
+## 2.6
+
+### 2.6.1
+
+用来查看stash列表
+```bash
+git stash list
+```
+
+恢复进度
+```bash
+git stash pop
+```
+
+```bash
+git commit -m "message" # 执行提交
+git status -s # 查看状态
+```
+
+```bash
+git reset --soft HEAD^ #反悔提交 将HEAD指向当前提交的父提交
+git reset HEAD a/b/c # 将a/b/c目录下的文件撤出暂存区
+git reset 将所有的文件从stage中撤出
+```
+
+```bash
+git checkout -- welcome.txt # 清除welcome.txt的改动
+git clean -nd # 删除本地多余的目录和文件列表
+git clean -fd # 真正删除
+```
+
+
+
+