Colin Charles Agenda

Interactive git add

I’ve been using git a lot more (its become my personal favourite; though on a daily basis I have to context switch between Bazaar and SVN as well – glad that I’ve stopped using CVS and BitKeeper) and am really liking it. Recently, I found out that git add has an interactive mode!

You can add a whole bunch of files real easily. Ditto with reverting changes. You can also add certain lines of a file (this is seriously useful).

Go give git add -i a twirl. Any other good git tips?