Another tip is about setting the favorite editor for writing commits.
It can use following code snippets to complete this:
peterli@peterli-Virtual-Machine:~$ git config --global core.editor vim
As we can see, it can use the above command to set favorite editor for writing commits globally. And we can also use the following command to set editor for the single repository:
peterli@peterli-Virtual-Machine:~$ git config core.editor vim
peterli@peterli-Virtual-Machine:~$
We can use the git config --list to get all setting lists:
Another tip is about setting the favorite editor for writing commits.
It can use following code snippets to complete this:
As we can see, it can use the above command to set favorite editor for writing commits globally. And we can also use the following command to set editor for the single repository:
We can use the
git config --list
to get all setting lists:Thanks for sharing.