Skip to content

Instantly share code, notes, and snippets.

@james-see
Created October 26, 2023 14:14
Show Gist options
  • Save james-see/cd08696d7a3274105998c289572fe2e0 to your computer and use it in GitHub Desktop.
Save james-see/cd08696d7a3274105998c289572fe2e0 to your computer and use it in GitHub Desktop.
git alias for quickness
git config --global alias.rando '!sh -c "git add -A && git commit -m \"$(curl -s https://whatthecommit.com/index.txt)\" && git push"'
@james-see
Copy link
Author

This line will ensure you can run git rando and it will auto add commit and push your changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment