[Practical Git] Show who changed a line last with git blame
Git with line show Last CHANGED who
2023-09-14 09:00:53 时间
When working on a file, we often want to know who made certain changes last; we can use git blame
to see details about the last modification of each line in a file. In this lesson, we show and example of using git blame
to see who made the last change on a line in a file, and then we use the output of git blame
to use in other tools like git log
to see the full context of why the change was made and what other parts of the code base were effected at the same time as the line from git blame
.
git blame getURL.js // check who and when made the last changes to the file
Then you will get the commit id, you can use git log to see the detial and commit message:
git log <commit_id> -p
相关文章
- [NPM] Run npm scripts with git hooks
- [Practical Git] Configure global settings with git config
- [Practical Git] Clean up commits with git rebase
- centos8上使用gitosis管理git项目
- git的一些操作命令
- [Practical Git] Diagnose which commit broke something with git bisect
- [Practical Git] Format commit history with git log arguments
- [Git] Automatically running tests before commits with ghooks
- git曲线
- RStudio版本号管理 整合Git
- git如何忽略文件或者文件夹
- 【Git技巧】第七篇 git分区原理(超级详细)
- GIT学习----第九节:添加远程库
- Git远程仓库(码云gitee)详解(八)