git commit -m 默认使用nano.在 .git/config 的 [core] 段中加上 editor=vi,便可修改成vi,SVN的没试过,应该也可以。如果只是想临时使用vi的话,可以使用 export EDITOR=vi。
git branch来查看分支