Skip to content

git diff --name-only and spaces #22586

Discussion options

You must be logged in to vote

Apologies, it was easy:

git archive -o changed.zip $COMMIT $(git diff --name-only $COMMIT $COMMIT^ | sed ‘s/.*/"&"/’)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants