Skip to content

Instantly share code, notes, and snippets.

@vitordino
Created September 4, 2018 09:03
Show Gist options
  • Save vitordino/d7539d7fc0e61caa3ec18bc42ba365a9 to your computer and use it in GitHub Desktop.
Save vitordino/d7539d7fc0e61caa3ec18bc42ba365a9 to your computer and use it in GitHub Desktop.
really useful for prepending some message on a branch, to reference issues or a scope of work
git filter-branch -f --msg-filter 'sed "1 s/^/LOREM_IPSUM: /"' origin/master..HEAD
# string to prepend ⬏───────────⬏ ⬑ range of commits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment