| | 190 | |
| | 191 | == 3. Brute force procedure |
| | 192 | |
| | 193 | The following procedure ensures resolution even if you did not keep the patch branch in your local repo or would have a complex rebase due to subsequent local patches. |
| | 194 | Using a branch for each patch and rebasing it has to be preferred as a best workflow. |
| | 195 | |
| | 196 | * clone the repository from scratch (optional, also a new branch should do) |
| | 197 | * apply the patch manually (with '''`--reject`''' option) |
| | 198 | * `git apply --reset patch_file` |
| | 199 | * fix manually the rejected files |
| | 200 | * You can find them by their extension (`.rej`) |
| | 201 | * then generate a new patch |
| | 202 | |
| | 203 | I think the only problem with this approach is that such patch won't be into your main working copy (existing repo), hence a clash might occur at next `git pull`. |
| | 204 | |