logo
  • 教程列表
  • SO官方文檔
  • 歸咎
    • 只顯示某些行
    • 顯示上次修改行的提交
    • 忽略僅限空白的更改
    • 找出誰更改了檔案
  1. StackOverflow 文件
  2. Git 教程
  3. 歸咎
  4. 找出誰更改了檔案

找出誰更改了檔案

Created: November-22, 2018

// Shows the author and commit per line of specified file
git blame test.c 

// Shows the author email and commit per line of specified 
git blame -e test.c file

// Limits the selection of lines by specified range
git blame -L 1,10 test.c 
  • 忽略僅限空白的更改

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明