git reflog用法
栏目:
git
发布时间:2021-12-24
git log 只能查看当前分支的log,不能查看已删除分支的 git reflog 可以查看所有分支的所有操作记录(包括已经被删除的 commit 记录和 reset 的操作)
$ git reflog
HEAD@{0}: commit: feat: 客户迁移获取leads name接口更换
0391bd89 HEAD@{1}: checkout: moving from feat_migrate_1118 to hotfix_1118
24f7e937 (origin/feat_migrate_1118, feat_migrate_1118) HEAD@{2}: commit: feat: 客户迁移
1453475b (tag: v2.13.0) HEAD@{3}: checkout: moving from feat_migrate_1117 to feat_migrate_1118
77f22309 (origin/feat_migrate_1117, feat_migrate_1117) HEAD@{4}: rebase finished: returning to refs/heads/feat_migrate_1117
77f22309 (origin/feat_migrate_1117, feat_migrate_1117) HEAD@{5}: rebase: feat: 迁移客户列表新增3个字段
本文地址:https://www.tides.cn/p_git-reflog