News for hackers. Stuff that matters.
Re:Git undo: We can do better by lamontcg on Monday June 21, 2021 @12:28PM (#27580757)
I guess I have `git pull --rebase` as muscle memory.

I would guess there's an easy way to make git do this automatically for you via config so you never forget, but I just never, ever `git pull`

Or:

> git config --global alias.up '!git fetch && git rebase --autostash FETCH_HEAD'

From:

https://github.com/JKrag/git-up

Re:Git undo: We can do better by rjmunro on Monday June 21, 2021 @01:29PM (#27581416)
git config --global pull.rebase true

You probably also want:

git config --global rebase.autostash true