どうするんだろうかと思っていたら、git status 打ったときに $ git status # On branch master # Changed but not updated: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) ... 「use "git checkout -- ..." to discard changes in working directory」って言ってくれてるやん。 早速ためしてみた。 $ wc -l make_csv.sql 52 make_csv.sql $ perl -i -wlne 'print if $. <= 10' ma