开发者

Reapply a commit that was undone by conflict?

开发者 https://www.devze.com 2023-03-22 08:24 出处:网络
I have this commit that was undone by someone who doesn\'t know how to deal with conflicts. Is there an easy way to try auto merging the commit back in? I开发者_高级运维 tried using \"merge to master\

I have this commit that was undone by someone who doesn't know how to deal with conflicts. Is there an easy way to try auto merging the commit back in? I开发者_高级运维 tried using "merge to master" but it just says up to date. I am using tortoisegit.


That's what git cherry-pick is for. It lets you apply changes by using already existing commits.

The basic syntax is:

git cherry-pick <commit> ... 
0

精彩评论

暂无评论...
验证码 换一张
取 消