Skip to content

Commit ae62deb

Browse files
committed
dev/git: git reflog
1 parent a7d7ffd commit ae62deb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/dev/git.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ d959e182468be92957bd175d189472de91f614c8
147147

148148
更多信息可阅读 [Git Book 的 10.5 节](https://git-scm.com/book/en/v2/Git-Internals-The-Refspec) 与 [git-fetch(1)][git-fetch.1]。
149149

150+
!!! tip "`git reflog`"
151+
152+
Reflogs(Reference logs)记录了 git 操作中 ref 的更新历史,在需要从误操作恢复,或确认之前操作给 ref 带来的变化时非常有用。例子参考 [Hackergame 2023 的 "Git? Git!" 一题](https://github.com/USTC-Hackergame/hackergame2023-writeups/tree/master/official/Git%20Git!)。
153+
150154
#### Remote {#git-remote}
151155

152156
绝大部分时候我们都有本地与远程仓库交互的需求,因此这里也介绍与 remote 相关的内容。

0 commit comments

Comments
 (0)