News for hackers. Stuff that matters.
Re:How to Write a Git Commit Message by aninhumer on Sunday September 13, 2015 @06:53PM (#10213062)
>It's probably also possible on the cli, but I imagine that would be too 'hard' or time consuming, hence you will probably start to be lazy about doing it correctly.

I do it all the time, you just use `git add -p` and it steps through hunks letting you stage them or not. As long as you don't make too many changes without committing, it's not particularly tedious.

Re:How to Write a Git Commit Message by abalashov on Monday September 14, 2015 @03:02AM (#10213906)
This was the 'killer app' that compelled me to switch to Git from Subversion back in the day, rather than anything else about Git intrinsically. The ability to organise my commits logically rather than temporally (i.e. not just as a stupid log of change over time) was like night and day.
Re:How to Write a Git Commit Message by viewer5 on Wednesday September 16, 2015 @09:33AM (#10226406)
> ability to organise my commits logically rather than temporally

I'm just getting started with Git; how do you do that? I googled it but nothing jumped out at me.

Re:How to Write a Git Commit Message by sfilipov on Thursday September 17, 2015 @04:26AM (#10232205)
He referred to what the GP said - use "git add -p". Here's some introduction (I haven't watched it myself and can't comment on the quality):

http://johnkary.net/blog/git-add-p-the-most-powerful-git-fea...

Re:How to Write a Git Commit Message by nitrogen on Sunday September 13, 2015 @11:23PM (#10213531)
I recommend setting up a shell alias to do this. I have all of my frequently used git commands aliased to two- or three-letter mnemonics.
Re:How to Write a Git Commit Message by jumpwah on Sunday September 13, 2015 @07:25PM (#10213112)
Sweet! I never bothered to check how to do it on the cli, and instead of being interactive, I just assumed you would have to reference the hunks by line number or something. Naive of me.
Re:How to Write a Git Commit Message by greg0ire on Tuesday September 15, 2015 @06:48AM (#10219883)
It also works with reset and checkout, BTW.
Re:How to Write a Git Commit Message by randlet on Sunday September 13, 2015 @08:55PM (#10213269)
Wow thank you. I had no idea that was something you could do!