简体   繁体   中英

How to set patience as default git diff algorithm

In .git/config I tried:

[diff]
    patience = true

But no luck

Do I have to do:

git diff --patience
git show --patience HEAD

etc., every time?

In lieu of a config-based answer, you could set an alias in your .gitconfig like so:

[alias]
dp = diff --patience

Which will allow you to do git dp [optional refspec]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM