This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: | |
# $ blobify [ <commit-args> ] | |
# # On another branch (perhaps in another worktree) | |
# $ git cherry-pick <paste-commit-sha-here> | |
function blobify() { | |
git commit "$@" | |
local rev="$(git rev-parse --short HEAD)" | |
git reset --soft HEAD^ | |
echo "\nBlobified as $rev" | |
pbcopy <<< "$rev" |