The method to specify the default diff tool when using 'git add' is by setting the 'diff.tool' configuration variable. This can be done using the following command:
git config --global diff.tool <tool_name>
Replace <tool_name>
with the name of the diff tool you want to use as the default. For example, if you want to use 'vimdiff' as the default, you can run:
git config --global diff.tool vimdiff
This will set 'vimdiff' as the default diff tool when using 'git add'.
Asked: 2023-07-17 21:56:20 +0000
Seen: 12 times
Last updated: Jul 17 '23