Skip to content

Instantly share code, notes, and snippets.

@objarni
Last active October 11, 2021 11:24
Show Gist options
  • Save objarni/1f7aa590847798ae5e50e781ea3bec79 to your computer and use it in GitHub Desktop.
Save objarni/1f7aa590847798ae5e50e781ea3bec79 to your computer and use it in GitHub Desktop.
test-commit-revert
#!/bin/env sh
clear && python main.py && git commit -a -m 'tcr' || git reset --hard
# combine with:
# ls main.py | entr ./tcr.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment