Member-only story

Fixing git and github issues

GuruAtWork
2 min readAug 19, 2019

--

Just a few notes on understanding git configuration and github issues. Between some poorly documented issues, interactivity of git and github and mismatching stackexchange answers to identical error messages, resolving this was a little painful. Hopefully this will save others some pain.

Here’s a fun fact. Git configuration can be stored in local, global or in windows in ‘system’. To identify which has the offending setting.

git config --list
#if you see duplicate settings for a parameter, you have problems.
git config --local --get-all user.name
git config --global --get-all user.name
git config --system --get-all user.name
#Replace user.name with user.email or user.password as needed.

Obviously duplicate settings for a parameter are bad and should be removed.

To update and replace configurations as required.

git config --global --replace-all user.password "newPassword"
#replace --global with --local or --system as required.
#similarly replace user.password with user.name (username) and user.email as appropriate

you can check settings and the updating of the config files. nb : linux users will be different to windows.

#useful
man git config
~/.gitconfig #*nix global config file/etc/gitconfig #system config filegit config --list
#view this output before editing .gitconfig below.

--

--

GuruAtWork
GuruAtWork

Written by GuruAtWork

Machine Learning, data analysis and Artificial Intelligence developer.

No responses yet