Patch Back
Patches formatted under Git has provided us with a way to apply commits from one repository to another, even if their structures are different.
The usage is quite simple:
To generate patch files first:
git format-patch -1 <commit_sha>
If you want to create patches of several commits, you may need to change the parameter:
git format-patch -n <commit_sha>
Then, Git will generate some
*.patch
files under the current workspaceApply generated patches:
git apply *.patch --directory='<relative_path>'
As the plugin is integrated with a code management system like GitLab or GitHub, you may have to auth with your account before leaving comments around this article.
Notice: This plugin has used Cookie to store your token with an expiration.