Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save emrcftci/406b892a08e3c542ea7607277bda8347 to your computer and use it in GitHub Desktop.
Save emrcftci/406b892a08e3c542ea7607277bda8347 to your computer and use it in GitHub Desktop.
Comma separated files with git diff
git --no-pager diff --name-only develop | tr '\n' ',' | sed 's/\(.*\),/\1 /'
@emrcftci
Copy link
Author

emrcftci commented Jan 1, 2022

run

git --no-pager diff --name-only HEAD | tr '\n' ',' | sed 's/\(.*\),/\1 /'

to see changed files with comma separated format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment