Skip to content

Instantly share code, notes, and snippets.

@obalunenko
Created May 14, 2021 12:26
Show Gist options
  • Select an option

  • Save obalunenko/0210c690ecd35cb4ef472b9dd8ebe606 to your computer and use it in GitHub Desktop.

Select an option

Save obalunenko/0210c690ecd35cb4ef472b9dd8ebe606 to your computer and use it in GitHub Desktop.
Get list of changed files against master bruch
#!/usr/bin/env bash
set -Eeuo pipefail
function cleanup() {
trap - SIGINT SIGTERM ERR EXIT
}
trap cleanup SIGINT SIGTERM ERR EXIT
git diff --name-only master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment