1

I can't seem to figure out how to specify this in my ~/.gitconfig so that anytime I run git diff <filename> it will automatically include -U<line number> by default so I don't have to enter it each time.

1 Answer 1

5

It's called "context lines":

git config --global diff.context 5 

See the docs.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.