git format-patch -1 <sha>
OR
git format-patch -1 HEAD
git apply --stat file.patch # show stats.
git apply --check file.patch # check for error before applying
| #!/usr/bin/env bash | |
| set -e | |
| IFS='|' | |
| help_output () { | |
| echo "usage: amplify-push <--environment|-e <name>> <--simple|-s>" | |
| echo " --environment The name of the Amplify environment to use" | |
| echo " --simple Optional simple flag auto-includes stack info from env cache" | |
| exit 1 | |
| } |