- It is possible to reconfigure the text editor for Git whenever you want to change it. Note that Vim is the default editor for many programs.
- Any Mac text editor can be configured to work with Git commits. As a fan of both command line and simple/efficient text editors, I've found both MacVim and TextMate to be the best. If you aren't comfortable with command line type things, or with vi, I would recommend TextMate. It's an extremely nice.
Git is quickly becoming one of the world's most popular solutions for version control. Many popular projects are only available through Git hosts, and many teams are beginning to appreciate the value of the distributed nature of Git.
When I'm using Git on Mac and need to do a rebase, the Vim editor kicks in by default. I would prefer Nano – could someone please explain how to reconfigure Git to make it use Nano for rebase?
Thank you!
migrated from stackoverflow.comNov 10 '12 at 16:06
This question came from our site for professional and enthusiast programmers.
2 Answers
git config --global core.editor 'nano'
Photo Editor For Mac
More information here:
sunnyrjunejasunnyrjunejaGit Editor Macvim
If you want to use nano as your editor for all things command line, add this to your bash_profile:
export EDITOR=/usr/bin/nano
This is assuming you're using the system nano. If not, edit to suit where your nano lives (e.g. /usr/local/bin, /opt/local/bin)
Remember to source your bash_profile after setting this or open a new terminal window for the settings to work...
Use a text editor to open and edit your files with Git.
Using Atom as your editor
You can set your default editor in Git to use Atom if you have installed the editor.
Install Atom.
Open TerminalTerminalGit Bashthe terminal.
Type this command:
Using Sublime Text as your editor
You can set your default editor in Git to use Sublime Text 3.
Install Sublime Text 3.
Open TerminalTerminalGit Bashthe terminal.
Type this command:
Using TextMate as your editor
You can set your default editor in Git to use Textmate if you have installed the mate
command.
Open TerminalTerminalGit Bashthe terminal.
Type this command:
Html Editor For Mac
Using Atom as your editor
You can set your default editor in Git to use Atom if you have installed the editor.
Install Atom.
Open TerminalTerminalGit Bashthe terminal.
Type this command:
Using Sublime Text as your editor
You can set your default editor in Git to use Sublime Text 3.
Install Sublime Text 3.
Open TerminalTerminalGit Bashthe terminal.
Type this command:
Using Notepad++ as your editor
You can set your default editor in Git to use Notepad++ if you have installed the editor.
Install Notepad++.
Open TerminalTerminalGit Bashthe terminal.
Type this command:
Git For Mac
Using Atom as your editor
Git Editor Vscode Mac
You can set your default editor in Git to use Atom if you have installed the editor.
Download Git For Mac
Install Atom.
Open TerminalTerminalGit Bashthe terminal.
Type this command:
Using Sublime Text as your editor
Git For Mac Os X
You can set your default editor in Git to use Sublime Text 3.
Install Sublime Text 3.
Open TerminalTerminalGit Bashthe terminal.
Type this command: