Sourcetree - undo unpushed commits

前端 未结 4 1482
一个人的身影
一个人的身影 2020-12-12 09:08

I am using Sourcetree for Windows for a git-repository and would like to undo an unpushed commit.

Is that possible? If I do \"revert commit\", it creates a second co

4条回答
  •  被撕碎了的回忆
    2020-12-12 09:56

    If You are on another branch, You need first "check to this commit" for commit you want to delete, and only then "reset current branch to this commit" choosing previous wright commit, will work.

提交回复
热议问题