[英]How do I get the list of changed and added files since the creation of a branch in git by a specific author?
I may have introduced errors in one of my commits. 我可能在其中一项提交中引入了错误。 My branch has been merged with master several times. 我的分支已经与master合并了几次。 What I need to do is to copy all of the files I created or changed since the branch began to a temp directory, delete the branch, branch off master again, and copy back my files. 我需要做的是将自分支开始以来创建或更改的所有文件复制到临时目录,删除该分支,再次从master分支,然后复制回我的文件。
You can look through the Git log for commits done specifically by yourself. 您可以通过Git日志查看自己专门完成的提交。 Git whatchanged will show you the files modified in every commit. Git whatchanged将向您显示在每次提交中修改的文件。 If you want to specify a range of commits (back to the creation of your branch), specify a revision range or use the --since flag. 如果要指定提交范围(返回到分支的创建),请指定修订范围或使用--since标志。
git whatchanged --author YOUR_EMAIL_HERE --since="1 month ago"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.