How to save configuration after changing lines from git config --edit

Let me explain my request here.

I am trying to reset all authors, including my git -pairs

git pair --reset no longer works. The documentation advised me to do the configuration using git config --edit

I entered the git config --edit command

and deleted

[user] and [git-pair] values ​​...

How to save the configuration after? Should I hit something with the keyboard or what.

I just know how to insert things there by clicking the "Insert" button from the keyboard, but I do not know how to save the configuration and return to the command line earlier.

I want to save a new configuration file, which:

 [core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true hideDotFiles = dotGitOnly ~ 
+4
source share
2 answers

Assuming the editor used is VI (M): press esc to exit insert mode, then : wq to save and exit

+8
source

You are editing it the same way you are editing a commit message. If you don't like the default editor, change it using the EDITOR environment EDITOR . In addition, you can directly edit your configuration file using the editor of your choice.

+1
source

All Articles