Skip to content

Instantly share code, notes, and snippets.

@schukin
Created May 22, 2019 23:05
Show Gist options
  • Save schukin/a87ae53e7efc73902abb5c90ee352ae7 to your computer and use it in GitHub Desktop.
Save schukin/a87ae53e7efc73902abb5c90ee352ae7 to your computer and use it in GitHub Desktop.
Git Yolo
git_commit_everything () {
git add .
git status
NEXT_COMMIT_MESSAGE=`curl -s http://whatthecommit.com | perl -p0e '($_)=m{<p>(.+?)</p>}s'`
echo $NEXT_COMMIT_MESSAGE
git commit -m "[WIP] $NEXT_COMMIT_MESSAGE"
}
alias yolo=git_commit_everything
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment