0

I am working on a java project but some output saved as csv file also tracked in the git. Sometimes the csv file changed completely so that the diff was very large. How to show java files diffs when using git show?

1 Answer 1

2

Use the following syntax;

git show -- '*.java'
Sign up to request clarification or add additional context in comments.

3 Comments

\*.java or '*.java' to protect shell metacharacter (*).
@Edmund Dipple Really appreciate your help. BTW, how to exclude some path, like 'src/test/java', with 'git show' command?
@Edmund Dipple I have found the solution in this post

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.