Most programs will check the $EDITOR environment variable, so you can set that to the path of TextEdit in your bashrc. Git will use this as well.
How to do this:
- Add the following to your
~/.bashrcfile:
export EDITOR="/Applications/TextEdit.app/Contents/MacOS/TextEdit" - or just type the following command into your Terminal:
echo "export EDITOR=\"/Applications/TextEdit.app/Contents/MacOS/TextEdit\"" >> ~/.bashrc
If you are using zsh, use ~/.zshrc instead of ~/.bashrc.