Tech note: Git patches and rebasing

So, last Friday while working on Freesound 2, I stumbled upon an interesting problem I need to solve using git. The problem is as follows: say you have a clone of a public git url (for example Now, you're making changes in this repository and at some point you want these changes back into the origin repository.