简体   繁体   English

Intellij Idea 取消“撤消提交”

[英]Intellij Idea cancel "undo commit"

I have undone a local commit, all the files that were in this commit are now gone.我已经撤消了本地提交,该提交中的所有文件现在都消失了。 Is there a way to revert the branch back to state when this undone commit was present?当存在此未完成的提交时,有没有办法将分支恢复回 state?

Intellij Undo commit uses git reset under the hood - this answer works wonders: How to undo 'git reset'? Intellij Undo commit 在后台使用 git 重置 - 这个答案创造了奇迹: 如何撤消“git reset”?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM