最佳答案
我做了一个承诺和恢复
git revert HEAD^
滚开
➜ 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
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?