README.md (375B)
1 # Steps to patch file `branch_B/hello.py` 2 3 1. Create a patch file from a diff: 4 ```bash 5 diff --color=never -u branch_B/hello.py branch_A/hello.py >fix.patch 6 ``` 7 2. Change into `branch_B/` and apply the patch to the file `hello.py`. Check 8 the contents of the file *before* you apply the patch and once more after. 9 To apply the patch: 10 ```bash 11 patch -p1 <../fix.patch 12 ```