1.how to check out the patch from the commited code:
git format-patch [commit ID] -o [target_directory]
2.how to check the fomat of patch:
git log -g
3.how to check in patch:
git am *.patch
4.how to merge the patch:
repo sync .
git apply *.patch --whitespace=fix --reject
reveiw *.rej files, merge it by hand
rm *.rej
git add .
git commit -m "commit info"