Why is git revert telling me “bad revision” when I use a commit hash?

倖福魔咒の 提交于 2019-12-05 11:06:08

When you use the short version of a SHA1, you use the prefix, not the suffix. So you actually want to say:

git revert 063ac580

Use the beginning of the hash as identification, as in:

git revert 063ac580e2

You are trying to revert that doesn't exist. The SHA that starts with 9e7d365f is not in your repository.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!