I only want to see the difference between the parts that I modified in git diff.

Asked 2 years ago, Updated 2 years ago, 40 views

 git diff branch 1 branch 2

When looking at the differences in the above command, is there a way to look at only the differences in the parts that I modified in branch2?

git

2022-09-30 15:44

1 Answers

Why don't you combine -p and --author of gitlog?

 git log-p --author=username


2022-09-30 15:44

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.