• Sobre

http://sergio.bruder.com.br/

random stuff

You've forgot one file out of your last commit, didn't ya?

2015-09-20 Nerd Software sergio

And now you’ve got 2 commits that were supposed to be one. Fear not!

Add this to your Alias section of ~/.gitconfig:

squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse [email protected]{1})\"; };f"

Now you can simply do a git squash 2 to join these last 2 commits together.

Latest posts
  • Backend tools update
  • Germany
  • Search Eloquent Macro
  • Latest Amazon Linux AMI
  • Wordpress is no more, long live Hugo
  • chmod recursive doing the right thing
  • Latest Centos 7 AMI
  • mysql 5.6 low memory config for 512MB boxes
  • Social Login Buttons are Worth It?
  • artisan in any subdir of your git repo.
Categories
  • Nerd (88)
  • Apple (32)
  • Software (32)
  • Hardware (29)
  • Culinária (20)
  • Brasil (18)
  • Família (8)
  • Tv (6)
  • Finanças (5)
  • Aeromodelismo (3)
  • Literatura (2)
Social media
© 2020 by Sergio Bruder, standing on the shoulders of giants