How do I revert back to earlier commit using source tree

前端 未结 2 1619
有刺的猬
有刺的猬 2020-12-25 14:34

I have a project stored on my Mac and created a repository for from that location to my project. I am able to commit using source tree but now I would like to revert back t

2条回答
  •  北海茫月
    2020-12-25 15:06

    Temporary Revert Back

    If you want to temporarily go back to this commit, then come back to where you are.

    Right click on the commit you want to revert to and click on "checkout".

    Permanent Revert Back

    This will add commits to revert all your work since this commit

    Right click on the commit you want to revert to and click on "Reset <> to this commit".

    enter image description here

提交回复
热议问题