Usually, I use android-studio for development and git via the terminal in mac os. Sometimes when I try to merge branches terminal print this line :
hint: Waiting for your editor to close the file...
and sublime text opens(which is the current default text editor for me in git), show me a message for the merge command, and want to save and close the editor. how can I set android-studio as the default text editor in git?
I did this for setting sublime as the default text editor in git( ~/.gitconfig) but need a similar command for android-studio:
editor = /Applications/Sublime\\\\ Text.app/Contents/SharedSupport/bin/subl -n -w
You Cannot change it to your android studio if you are merging in android studio. just remove the sublime and it will be android studio which handle this.
studio --wait
as the Git editor.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.