Patches
See this very nice post!
Make some work
git checkout -b fix
In the new fix branch you can hack whatever you need to fix. Write tests, update code etc. etc.
# To only add updated files to commit stage
git add -u
# To make a commit
git commit -m "my commit message"
When you’re satisfied with all you changes, it’s time to create your patch. We assume you made a few commits in the fix branch and did not yet merge it back in to the master branch.
Check you changes
git log
git log --pretty=oneline -5
Create patches
Now create your patch, comparing to the master branch
git format-patch master --ignore-if-in-upstream
Now tar and gunzip the files
tar -cvzf fix.patch.tar.gz 00*.patch
rm 00*.patch
If you need to ..→