git and vimdiff to visualize changes

1. See commits

git log

2. setup vimdiff as default diff tool for git

git config --global diff.tool vimdiff

3. disable question prompt for vimdiff

git config --global diff.tool.prompt false

4. See diff between commits

git difftool <commit-sha> -- <file-path>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s