Created
May 21, 2024 09:22
-
-
Save srathi-monarch/5c5caf39f7f27e321ad08bdd0c30e041 to your computer and use it in GitHub Desktop.
Clean .gitconfig (removes comments),
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IFS=$'\n'; for key in $(git config --global -l); do bash -c "git config --file=.gitconfig_new $(echo $key | tr '=' ' ')"; done | |
# Chekc both files and replace .gitconfig if it looks good!. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment