Useful git commands

Just a series of git commands I found useful.

If they’re here, it means I didn’t come accross all of them in the same place, and I chose to bunch them all together for future ease of recollection.

git config --global 'commit -m'

git config --global strikingLoo

Considered a lot less secure (for obvious reasons) so don’t use this for passwords.

git config --global alias.uu 'diff --name-status --diff-filter=U' List unmerged files.

git difftool --dir-diff main Compare against a branch.

[Share on twitter]

13 Jun 2020 - importance: 3