Re:Git tips to stop you getting fired
by zem on Monday April 08, 2013 @04:40PM
(#5514416)
i mostly use the cli, but i use a gui (git-cola) for interactively committing only part of the current diff. it's way better than git add --interactive. also gitk is nicer than tig, though tig is easier to use when sshed into another server.
[ Parent
| on HN ]
Incremental (interactive) commits are probably best done from within your editor. I use fugitive [1] for Vim, there's magit [2] for Emacs, and probably a plugin for your favorite IDE, or ST2.
[1] https://github.com/tpope/vim-fugitive/tpope/vim-fugitive
what does fugitive do for interactive commits that beats git-cola? i love vim for single-file things, but once it comes to a global project view i usually prefer to use another tool.
I have never use git-cola, so I can't compare, but for an overview of fugitive's features, you should probably look into the Vimcasts on that subject. There's overall five videos, this one is the first:
http://vimcasts.org/episodes/fugitive-vim---a-complement-to-...