0

For some legal reasons I need to show all of the contributions that I've made to a projet.

Is there a way, using only the local git to see all of the diff of all files in between each commits? Or other informations like the total number of changes or lines of code.

At the moment I only have a list of commits with git logs.

Mel
  • 625
  • 9
  • 25
  • Does this answer your question? [Show diff between commits](https://stackoverflow.com/questions/3368590/show-diff-between-commits) – joshmeranda Apr 04 '22 at 18:25
  • Hi @joshmeranda, only partly as I need to show a diff between all of the commits – Mel Apr 04 '22 at 18:28
  • 1
    What does "between all of the commits" mean, exactly? Are you looking to export a long list of diffs, one for every commit made to the project? – IMSoP Apr 04 '22 at 18:30
  • The answer I linked shows you how to get the diff between commits. If you need to show the diffs of a commit, iterate over your list of commits and take the diff between the taget commits parent and the targe tcommit: `git diff `. If you need more specificity for each of those parts you probably need to open new questions for each part – joshmeranda Apr 04 '22 at 18:35
  • @IMSoP exactly what I need – Mel Apr 04 '22 at 20:42

1 Answers1

2

If you want to see all commits created by you and what change they contain compared to their parent commit, you can simply filter the by author name and have it show the commit patches:

git log --author=youremail --patch --all
knittl
  • 246,190
  • 53
  • 318
  • 364