我做了一个提交并恢复了
git revert HEAD^
只是 git 日志
➜ git:(master) git log
commit 45a0b1371e4705c4f875141232d7a97351f0ed8b
Author: Daniel Palacio <danpal@gmail.com>
Date: Tue Jan 17 16:32:15 2012 -0800
Production explanation
但是如果我做 git log --all 它仍然会出现。我需要将其从历史记录中删除,因为它包含敏感信息
git log --all
commit 5d44355080500ee6518f157c084f519da47b9391
Author: Daniel Palacio
Date: Tue Jan 17 16:40:48 2012 -0800
This commit has to be reset
commit 45a0b1371e4705c4f875141232d7a97351f0ed8b
Author: Daniel Palacio
Date: Tue Jan 17 16:32:15 2012 -0800
Production explanation
如何也从历史记录中删除提交 5d44355080500ee6518f157c084f519da47b9391 ?