git diff > 1234.patch
git diff uat file_path > 1234.patch
patch -p1 < 1234.patch
git diff master..patch-branch > fix-bug.patch