Git - blame file_name [after to improve this question ]

I know that how to view and search git log along with graph and details.

is it use the blame command could be complete?

I have not previous experience.

I never used the blame command, so don't lie to me. you will pay for this.

Because I browse information about line history how to usage.

一、case of letters different.

git 命令 有大小写区别,如下面,提示说不是内建的命令。

blame 英 / bleɪm 责任 责备;

二、 usage for the blame command:

git blame用来追溯一个指定文件的历史修改记录。它能显示任何文件中每行最后一次修改的提交记录。 所以,如果你在代码中看到一个有 bug 的方法,你可以使用 git blame 标注这个文件,查看哪一次提交引入了这行。

用法:For first, I tried this command : git Blame filename, and I getting this error message.

D:\cip-mam-web>git Blame \src\app\MAMAllot\crm-master-allotment\crm-master-allotment.component.scss
fatal: cannot handle Blame as a builtin

D:\cip-mam-web>git blame \src\app\MAMAllot\crm-master-allotment\crm-master-allotment.component.scss
fatal: Invalid path '/src': No such file or directory

D:\cip-mam-web>git blame src\app\MAMAllot\crm-master-allotment\crm-master-allotment.component.scss

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值