git config and commiting with the right details

6 March 2021

In git it’s pretty easy to accidentally commit with the wrong details

git config -l --show-origin shows you where settings are from

git config --local  --get-all
git config --global --get-all
git config --system --get-all

can be used to get configuration options with different scopes

To change ID of last commit:

git commit --amend --reset-author