I have one important problem on Git CLI on macOS...
How do I change the default text editor? I am too bad at vi. Wanna change it to Nano or Code or something.
Otherwise, I will need vi cheatsheet as well, even when productivity doesn't matter.
You can setup default editor in the .bash_profile or .zshrc file in your users profile :)
Thanks, found it. A better way, actually.
git config --global core.editor "nano"
And, git config --global --edit, of course.
git config --global --edit
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I have one important problem on Git CLI on macOS...
How do I change the default text editor? I am too bad at vi. Wanna change it to Nano or Code or something.
Otherwise, I will need vi cheatsheet as well, even when productivity doesn't matter.
You can setup default editor in the .bash_profile or .zshrc file in your users profile :)
Thanks, found it. A better way, actually.
And,
git config --global --edit
, of course.