jefflembeck’s avatarjefflembeck’s Twitter Archive—№ 28,192

    1. Was reminded of this tweet, this week. Just a quick note: git commit --fixup SHA is your friend! My use of it has actually eliminated the amount of times I have typed a one four-letter word commit message. jefflembeck/1118892291995734016
  1. …in reply to @jefflembeck
    Also. There is no shame in force pushing to a branch you’re actively developing against by yourself. Nobody cares. Go ahead.
    1. …in reply to @jefflembeck
      So, like, you’re working and you think you have a thing done and you push up and then you see a quick bug and you’re all about to type “fix” or “I’m an idiot” or “fuck computers” — ya know, normal stuff. git add --all git commit --fixup HEAD
      1. …in reply to @jefflembeck
        Then if you have a few fixups, you can do an interactive rebase! git rebase -i HEAD~N And voila. It’s like you never made those mistakes. Force push away. You’re suddenly a genius. Nobody has to know you spelled Account with one c.