linux 下 patch檔案簡易使用方式

產生patch檔案
diff -u hello_old.c hello_new.c > hello.patch

針對某一檔案打入 patch
patch hello.c < hello.patch

 

Reference from:

http://www.cyberciti.biz/faq/appy-patch-file-using-patch-command/

arrow
arrow
    全站熱搜

    CuteParrot 發表在 痞客邦 留言(0) 人氣()