Patching with Git
Git is hard; but powerful. A wee bit of command porn for you for contributing with open source projects.
When sitting in a branch you have been working on for a new feature / bugfix which was created with the command:
To create a patch for the master branch which is a remote tracking branch for a read only git repo. Typically, this is an open source project which you cant push to therefore you need to patch.
Now you can create a ticket on the open source project with your patch.
||
To load a patch, its good to do it in a new branch.
So a workflow to applying a patch is as follows
You can then check you are happy and when you are. You can merge back into master by committing the branch changes then switching back to the master branch and merging your
Please correct me on any glaring errors you see. Im pretty much making it up as I go along.