How to use 'git config -l' cli?



I found if I command git config -l then it showes a list like(maybe config), and now I know I can quit the cli by q key, but I want to use the cli. How to use it? For example, if I want to change,


I am afraid you wouldn’t be able to easily modify config with that command. This command only list your configuration and the ‘cli’ you see is your pager (like less or more) which turns on only when full content cannot fit screen. You can ofc change it to some specific editor

git config --global core.pager "vim -"

And get the content but you won’t be able to save it without providing full name.

The proper way to edit config is

git config --edit --global

Which will open config in your configured editor

git config --global core.editor vim

Answered By – kosciej16

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More