allow me to explain my query here.
I'm trying to reset all authors including my git-pairs
git pair --reset
isn't working anymore. A documentation had advised me to do the configuration using git config --edit
I entered the command git config --edit
and removed the
[user]
and [git-pair]
values...
How can I save the configuration after? Should I hit something from the keyboard or what.
I just know how to insert stuffs in there by pressing Insert button from keyboard but I dont know how to save the config and go back to the command prompt earlier.
I want to save the new config file which is:
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
~
If you want to save your changes and quit, press Esc then type :wq and hit Enter or ↵ or on Macs, Return .
The global git config is simply a text file, so it can be edited with whatever text editor you choose. Open, edit global git config, save and close, and the changes will take effect the next time you issue a git command. It's that easy.
Assuming the editor in use is VI(M): hit esc to leave insert mode, then :wq to save and quit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With