2014年5月11日 星期日

git 常用指令

發送 patch
git send-email $(git format-patch -s --subject-prefix 'PATCH] [' -o /tmp/patches/ -2) --compose --suppress-from --to blogic@openwrt.org --cc openwrt-devel@lists.openwrt.org

git send-email $(git format-patch -s -n -2) --compose --suppress-from --to blogic@openwrt.org --cc openwrt-devel@lists.openwrt.org

git send-email $(git format-patch -s --subject-prefix 'PATCH] [' -o /tmp/patches/ HEAD~4..HEAD~1) --compose --suppress-from --to blogic@openwrt.org --cc nbd@openwrt.org

git format-patch -s --stdout -N --to blogic@openwrt.org --cc openwrt-devel@lists.openwrt.org -1 | git imap-send