News for hackers. Stuff that matters.
Re:Some bad Git situations and how I got myself out of them by aromatt on Friday September 09, 2016 @12:43PM (#12463858)
Yep. I find that most of the time, the commit I want to fixup is my last one, so I don't even need the interaction. I use this script almost every day:

    last_commit=$(git log --oneline | head -1 | cut -d' ' -f1)
    git commit -a --fixup ${last_commit}
    GIT_SEQUENCE_EDITOR=true git rebase -i --autosquash ${last_commit}~1
Re:Some bad Git situations and how I got myself out of them by bjackman on Friday September 09, 2016 @12:57PM (#12464017)
What's the difference between this and 'git commit --amend'?
Re:Some bad Git situations and how I got myself out of them by aromatt on Friday September 09, 2016 @01:21PM (#12464246)
I'd say my script is equivalent to `git commit --all --amend --no-edit`