Git checkout to commit number N

与世无争的帅哥 提交于 2019-12-22 00:12:45

问题


I use number of commits as version of my program (Using hash of commit as version very inconvenient, becouse it not sequential). So I obtain commit number:

git rev-list --count HEAD

For example for current state it reurns 53. Can I do checkout to commit number 35 ? Or obtain hash of commit number 35 ?

来源:https://stackoverflow.com/questions/28671503/git-checkout-to-commit-number-n

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