Git - Patching


How can we apply patch?

git apply < ../p/foo.patch
git commit -a

How can we create a patch?

git format-patch HEAD^ # (HEAD^ means every patch since one revision before the tip of the branch, also known as HEAD)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License