Git switching between commits

前端 未结 3 722
鱼传尺愫
鱼传尺愫 2020-12-29 10:37

I read on here and searched a lot but didn\'t find the answer, so Is there a way to switch between commits like you do with branches.Let\'s say I have these commits: a

3条回答
  •  有刺的猬
    2020-12-29 10:48

    You can create a branch from the revision you want to work from. The revision number can be seen using

       git log
    

    Branch out from the previous revision

     git branch -f branchname rev
    

提交回复
热议问题