這誰改的?
開發時間一久,很常忘記某行 code 是怎麼來的,自己改的或別人加的?Git blame 可以幫助我們找到指定檔案每一行的修改資訊,包含 commit number, 作者, 時間⋯等等
git-blame - Show what revision and author last modified each line of a file
逐行檢視一個檔案的修改紀錄
$ git blame <filename>
指定某個範圍
$ git blame -L<start_line>,<end_line> <filename>
開發時間一久,很常忘記某行 code 是怎麼來的,自己改的或別人加的?Git blame 可以幫助我們找到指定檔案每一行的修改資訊,包含 commit number, 作者, 時間⋯等等
git-blame - Show what revision and author last modified each line of a file
逐行檢視一個檔案的修改紀錄
$ git blame <filename>
指定某個範圍
$ git blame -L<start_line>,<end_line> <filename>
github 也支援 git blame 了~
回覆刪除http://min.us/mbdlMW5J8I