Using for example git commit, my editor(sublime) opens twice, one is empty. output of git config --global core.editor is: subl -n -w and .g