我有一个git repo,我们在测试环境中应用了很多补丁.
git apply --stat --check --ignore-whitespace /home/kent/Desktop/patches/test.patch --exclude .gitignore
git am -s --ignore-whitespace /home/kent/Desktop/patches/test.patch --exclude .gitignore --exclude .gitignore
Run Code Online (Sandbox Code Playgroud)
如果我必须删除补丁并应用新补丁,目前我克隆实时内容并重新应用所有测试补丁并再次推送.这个过程有点麻烦,有时也会导致错误我也会错过一两个补丁.
我想知道是否有办法删除补丁并应用新补丁
另外,如果我们每次都提交补丁然后我可以使用,那么添加一种方法就是:
git revert <<commit id>>
Run Code Online (Sandbox Code Playgroud)
以上对我来说并不适用.