Skip to content

Instantly share code, notes, and snippets.

@djdrzzy
Created September 9, 2022 19:25
Show Gist options
  • Select an option

  • Save djdrzzy/014a8643b75527cd667ca1649197cd5f to your computer and use it in GitHub Desktop.

Select an option

Save djdrzzy/014a8643b75527cd667ca1649197cd5f to your computer and use it in GitHub Desktop.
[core]
editor = emacs
[alias]
squash = "!f(){ CUR=`git rev-parse HEAD` && git reset --soft ${1} && git commit -m \"$(git log --format=%B ${1}..${CUR})\"; };f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment