开发者

Is it any git able text editor for MAC?

Is it any extension for git for MAC users? I would like to use git integrated 开发者_C百科with TextWrangler or any text editor in my MAC.


I'm not sure what you're asking. I use TextWrangler as my text editor from git. In TextWrangler, under the application menu, choose "Install Command Line Tools". That installs /usr/bin/edit. Then in my ".gitconfig" file I use:

editor = /usr/bin/edit -w

This makes TextWrangler my git text editor. So when I run a git command like "git commit -a", TextWrangler will open and I can enter my commit comment. When I close TextWrangler I am taken back to the Terminal where I can continue using git.


Maybe the Git Bundle for TextMate is what you need http://blog.macromates.com/2008/git-bundle/


I would recommend for everybody to use SourceTree as git GUI front end on Mac. Git + SourceTree + Dropbox what we use in our company to sync our daily work. SourceTree is free yet.

If there is something you can not handle in SourceTree, than it is good to know that the default text editor is vim. The most important shortcuts for vim are the following:

  • Press 'i' to get into 'edit / insert' mode from 'view' mode
  • Press ESC to get back to 'view' mode
  • Write in view mode ':wq' to quit vim and save changes


Coda 2, you can Git Add, Commit, Push, Pull and more within the editor.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜