diff --git a/notes/2.6-git_statsh.md b/notes/2.6-git_statsh.md deleted file mode 100644 index 0da3151..0000000 --- a/notes/2.6-git_statsh.md +++ /dev/null @@ -1,34 +0,0 @@ -## 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 # 真正删除 -``` - - - - diff --git a/notes/2.7-git_basic_op.md b/notes/2.7-git_basic_op.md new file mode 100644 index 0000000..93ef115 --- /dev/null +++ b/notes/2.7-git_basic_op.md @@ -0,0 +1,12 @@ +## 2.7 Git Basic Ops + +## 2.7.1 git tag + +给当前的进度打个标签 +```bash +git tag -m "some message" +git describe # 查看标签 +``` + +## 2.7.2 Git 删除文件 +git diff --git a/notes/a b/notes/a index 1fe12d5..e150f30 100644 --- a/notes/a +++ b/notes/a @@ -1,2 +1,3 @@ welcome 1039 +1539