git显示由我或文件夹中的任何人提交的最近10次提交所做的更改 [英] git show changes done by last 10 commits by me or anyone in a folder
本文介绍了git显示由我或文件夹中的任何人提交的最近10次提交所做的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个git仓库,里面有一个文件夹。在此文件夹中,多人进行更改。我最近在那个目录中做了很少的提交。
I have a git repository in which I have a folder . In this folder multiple people makes changes . I have recently made few commits in that directory .
我想要
I want to
1) view all changes that I have done in last 10 commits in that directory
(ie changes done by me only)
和
and
2) view all changes that anyone has done in that directory in last 10 commits .
推荐答案
试试:
git log -p -10 yourdir/
添加 - author = yourLogin
以限制您的更改。
这个不同于列出更改的文件。
这篇关于git显示由我或文件夹中的任何人提交的最近10次提交所做的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文