how to fork and record patches to foreign projects