Skip to content

Instantly share code, notes, and snippets.

@AstraLuma
Created March 3, 2021 17:00
Show Gist options
  • Save AstraLuma/c9392dec5d2f7a301b4650aa0762bd39 to your computer and use it in GitHub Desktop.
Save AstraLuma/c9392dec5d2f7a301b4650aa0762bd39 to your computer and use it in GitHub Desktop.
git boop

Creates & pushes empty commits without disturbing your index or workspace

  1. Copy git-boop.sh to git-boop on your $PATH
  2. Run git boop
#!/bin/bash
git reset --soft $(git commit-tree -p HEAD -m "boop" $(git cat-file -p HEAD | grep tree | head -n 1 | awk '{print $2}'))
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment