Skip to content

Instantly share code, notes, and snippets.

@ivan1993spb
Created February 23, 2019 16:15
Show Gist options
  • Save ivan1993spb/23efe7c7af8300b9f8c8062aeb1cc427 to your computer and use it in GitHub Desktop.
Save ivan1993spb/23efe7c7af8300b9f8c8062aeb1cc427 to your computer and use it in GitHub Desktop.
set -ex
test -f "$1"
less "$1"
git apply < "$1"
git add .
git reset "$1"
git commit
rm "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment