git checkout某一版本不需要全名字

来源:互联网 发布:省市地区数据库 编辑:程序博客网 时间:2024/04/30 11:41

c10457cc0c3ab75ead1a36ea64718543d54da323

我在as里面的versoncontrol里面看到是c10457c

然后我用checkout c10457c也是可以的


 git checkout c10457c

Note: checking out 'c10457c'.


You are in 'detached HEAD' state. You can look around, make experimental

changes and commit them, and you can discard any commits you make in this

state without impacting any branches by performing another checkout.


If you want to create a new branch to retain commits you create, you may

do so (now or later) by using -b with the checkout command again. Example:


  git checkout -b <new-branch-name>


HEAD is now at c10457c... enhance



lfz$ git log | grep c10457

commit c10457cc0c3ab75ead1a36ea64718543d54da323



0 0