git config --edit
I used Atom, to open files this works for me
atom index.html
Hopefully this helps.