您的位置:首页 > 其它

查看某个文件的git 历史和更改

2015-09-13 19:30 302 查看
refs:
http://stackoverflow.com/questions/278192/view-the-change-history-of-a-file-using-git-versioning
git whatchanged -p filename

git log -p filename

You can also see when a specific line of code inside a file was changed with git blame filename. This will print out a short commit id, the author, timestamp, and complete line of code for every line in the file. This is very useful after you've found a bug
and you want to know when it was introduced (or who's fault it was).
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: