Skip to content

Instantly share code, notes, and snippets.

@maishsk
Created December 24, 2018 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maishsk/4ea0a0d7772056ab59cc91855ac3b6d0 to your computer and use it in GitHub Desktop.
Save maishsk/4ea0a0d7772056ab59cc91855ac3b6d0 to your computer and use it in GitHub Desktop.
Get changed files in the last commit.
changed_files=$(git diff --numstat HEAD~1 HEAD | awk '{ print $NF }')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment